diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2014-09-03 23:59:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-05 17:13:24 -0700 |
commit | e7478dfc4656f4a739ed1b07cfd59c12f8eb112e (patch) | |
tree | 68f1123a468dee35fc74416001fc1923cf4c4fa7 /net | |
parent | f24062b07dda89b0e24fa48e7bc3865a725f5ee6 (diff) | |
download | op-kernel-dev-e7478dfc4656f4a739ed1b07cfd59c12f8eb112e.zip op-kernel-dev-e7478dfc4656f4a739ed1b07cfd59c12f8eb112e.tar.gz |
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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index ce761c7..fc1fac2 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) addrconf_leave_solict(ifp->idev, &ifp->addr); if (!ipv6_addr_any(&ifp->peer_addr)) { struct rt6_info *rt; - struct net_device *dev = ifp->idev->dev; - rt = rt6_lookup(dev_net(dev), &ifp->peer_addr, NULL, - dev->ifindex, 1); + rt = addrconf_get_prefix_route(&ifp->peer_addr, 128, + ifp->idev->dev, 0, 0); if (rt && ip6_del_rt(rt)) dst_free(&rt->dst); } |