diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2012-11-12 07:50:17 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-12 15:23:21 -0500 |
commit | 9fafd65ad407d4e0c96919a325f568dd95d032af (patch) | |
tree | 31f5c6e7a824522ac4606b69fd2d38b7eac37cda /net/ipv6/ndisc.c | |
parent | 810f4893e93b4e074be6b7a7cc6a36a1f2c51aa8 (diff) | |
download | linux-9fafd65ad407d4e0c96919a325f568dd95d032af.tar.gz linux-9fafd65ad407d4e0c96919a325f568dd95d032af.tar.bz2 linux-9fafd65ad407d4e0c96919a325f568dd95d032af.zip |
ipv6 ndisc: Use pre-defined in6addr_linklocal_allnodes.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 4f47aa5183ae..6ba4b54a550a 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -535,7 +535,6 @@ static void ndisc_send_unsol_na(struct net_device *dev) { struct inet6_dev *idev; struct inet6_ifaddr *ifa; - struct in6_addr mcaddr = IN6ADDR_LINKLOCAL_ALLNODES_INIT; idev = in6_dev_get(dev); if (!idev) @@ -543,7 +542,7 @@ static void ndisc_send_unsol_na(struct net_device *dev) read_lock_bh(&idev->lock); list_for_each_entry(ifa, &idev->addr_list, if_list) { - ndisc_send_na(dev, NULL, &mcaddr, &ifa->addr, + ndisc_send_na(dev, NULL, &in6addr_linklocal_allnodes, &ifa->addr, /*router=*/ !!idev->cnf.forwarding, /*solicited=*/ false, /*override=*/ true, /*inc_opt=*/ true); |