aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2014-09-03 17:59:22 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-05 20:13:24 -0400
commite7478dfc4656f4a739ed1b07cfd59c12f8eb112e (patch)
tree68f1123a468dee35fc74416001fc1923cf4c4fa7 /net
parentf24062b07dda89b0e24fa48e7bc3865a725f5ee6 (diff)
ipv6: use addrconf_get_prefix_route() to remove peer addr
addrconf_get_prefix_route() ensures to get the right route in the right table. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/addrconf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index ce761c7e6675..fc1fac2a0528 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4768,10 +4768,9 @@ static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
4768 addrconf_leave_solict(ifp->idev, &ifp->addr); 4768 addrconf_leave_solict(ifp->idev, &ifp->addr);
4769 if (!ipv6_addr_any(&ifp->peer_addr)) { 4769 if (!ipv6_addr_any(&ifp->peer_addr)) {
4770 struct rt6_info *rt; 4770 struct rt6_info *rt;
4771 struct net_device *dev = ifp->idev->dev;
4772 4771
4773 rt = rt6_lookup(dev_net(dev), &ifp->peer_addr, NULL, 4772 rt = addrconf_get_prefix_route(&ifp->peer_addr, 128,
4774 dev->ifindex, 1); 4773 ifp->idev->dev, 0, 0);
4775 if (rt && ip6_del_rt(rt)) 4774 if (rt && ip6_del_rt(rt))
4776 dst_free(&rt->dst); 4775 dst_free(&rt->dst);
4777 } 4776 }