diff options
author | David S. Miller <davem@davemloft.net> | 2011-12-28 20:19:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-28 20:19:20 -0500 |
commit | d191854282fd831da785a5a34bc6fd16049b8578 (patch) | |
tree | 2a2700b2dec7ad9e73c55c833346dbbd67b8777c /net/ipv6/addrconf.c | |
parent | f83c7790dc0025fffbd8684f3803a7571f624baa (diff) |
ipv6: Kill rt6i_dev and rt6i_expires defines.
It just obscures that the netdevice pointer and the expires value are
implemented in the dst_entry sub-object of the ipv6 route.
And it makes grepping for dst_entry member uses much harder too.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 85421cce5e1a..647e6cba237d 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -797,7 +797,7 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp) | |||
797 | ip6_del_rt(rt); | 797 | ip6_del_rt(rt); |
798 | rt = NULL; | 798 | rt = NULL; |
799 | } else if (!(rt->rt6i_flags & RTF_EXPIRES)) { | 799 | } else if (!(rt->rt6i_flags & RTF_EXPIRES)) { |
800 | rt->rt6i_expires = expires; | 800 | rt->dst.expires = expires; |
801 | rt->rt6i_flags |= RTF_EXPIRES; | 801 | rt->rt6i_flags |= RTF_EXPIRES; |
802 | } | 802 | } |
803 | } | 803 | } |
@@ -1723,7 +1723,7 @@ static struct rt6_info *addrconf_get_prefix_route(const struct in6_addr *pfx, | |||
1723 | if (!fn) | 1723 | if (!fn) |
1724 | goto out; | 1724 | goto out; |
1725 | for (rt = fn->leaf; rt; rt = rt->dst.rt6_next) { | 1725 | for (rt = fn->leaf; rt; rt = rt->dst.rt6_next) { |
1726 | if (rt->rt6i_dev->ifindex != dev->ifindex) | 1726 | if (rt->dst.dev->ifindex != dev->ifindex) |
1727 | continue; | 1727 | continue; |
1728 | if ((rt->rt6i_flags & flags) != flags) | 1728 | if ((rt->rt6i_flags & flags) != flags) |
1729 | continue; | 1729 | continue; |
@@ -1881,11 +1881,11 @@ void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len) | |||
1881 | rt = NULL; | 1881 | rt = NULL; |
1882 | } else if (addrconf_finite_timeout(rt_expires)) { | 1882 | } else if (addrconf_finite_timeout(rt_expires)) { |
1883 | /* not infinity */ | 1883 | /* not infinity */ |
1884 | rt->rt6i_expires = jiffies + rt_expires; | 1884 | rt->dst.expires = jiffies + rt_expires; |
1885 | rt->rt6i_flags |= RTF_EXPIRES; | 1885 | rt->rt6i_flags |= RTF_EXPIRES; |
1886 | } else { | 1886 | } else { |
1887 | rt->rt6i_flags &= ~RTF_EXPIRES; | 1887 | rt->rt6i_flags &= ~RTF_EXPIRES; |
1888 | rt->rt6i_expires = 0; | 1888 | rt->dst.expires = 0; |
1889 | } | 1889 | } |
1890 | } else if (valid_lft) { | 1890 | } else if (valid_lft) { |
1891 | clock_t expires = 0; | 1891 | clock_t expires = 0; |