ipv6: Get rid of rt6i_nexthop macro.

It just makes it harder to see 1) what the code is doing
and 2) grep for all users of dst{->,.}neighbour

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2011-07-17 20:06:13 -07:00
parent 8f40b161de
commit 9cbb7ecbcf
5 changed files with 19 additions and 20 deletions

View File

@@ -656,7 +656,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
* layer address of our nexhop router
*/
if (rt->rt6i_nexthop == NULL)
if (rt->dst.neighbour == NULL)
ifa->flags &= ~IFA_F_OPTIMISTIC;
ifa->idev = idev;