mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
810f4893e9
commit
9fafd65ad4
|
@ -535,7 +535,6 @@ static void ndisc_send_unsol_na(struct net_device *dev)
|
||||||
{
|
{
|
||||||
struct inet6_dev *idev;
|
struct inet6_dev *idev;
|
||||||
struct inet6_ifaddr *ifa;
|
struct inet6_ifaddr *ifa;
|
||||||
struct in6_addr mcaddr = IN6ADDR_LINKLOCAL_ALLNODES_INIT;
|
|
||||||
|
|
||||||
idev = in6_dev_get(dev);
|
idev = in6_dev_get(dev);
|
||||||
if (!idev)
|
if (!idev)
|
||||||
|
@ -543,7 +542,7 @@ static void ndisc_send_unsol_na(struct net_device *dev)
|
||||||
|
|
||||||
read_lock_bh(&idev->lock);
|
read_lock_bh(&idev->lock);
|
||||||
list_for_each_entry(ifa, &idev->addr_list, if_list) {
|
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,
|
/*router=*/ !!idev->cnf.forwarding,
|
||||||
/*solicited=*/ false, /*override=*/ true,
|
/*solicited=*/ false, /*override=*/ true,
|
||||||
/*inc_opt=*/ true);
|
/*inc_opt=*/ true);
|
||||||
|
|
Loading…
Reference in New Issue