mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ipv6: send unsolicited neighbour advertisements to all-nodes
[ Upstream commit 60713a0ca7
]
As documented in RFC4861 (Neighbor Discovery for IP version 6) 7.2.6.,
unsolicited neighbour advertisements should be sent to the all-nodes
multicast address.
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0f2835b0b7
commit
f0d6767af2
1 changed files with 1 additions and 2 deletions
|
@ -593,7 +593,7 @@ static void ndisc_send_unsol_na(struct net_device *dev)
|
|||
{
|
||||
struct inet6_dev *idev;
|
||||
struct inet6_ifaddr *ifa;
|
||||
struct in6_addr mcaddr;
|
||||
struct in6_addr mcaddr = IN6ADDR_LINKLOCAL_ALLNODES_INIT;
|
||||
|
||||
idev = in6_dev_get(dev);
|
||||
if (!idev)
|
||||
|
@ -601,7 +601,6 @@ 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) {
|
||||
addrconf_addr_solict_mult(&ifa->addr, &mcaddr);
|
||||
ndisc_send_na(dev, NULL, &mcaddr, &ifa->addr,
|
||||
/*router=*/ !!idev->cnf.forwarding,
|
||||
/*solicited=*/ false, /*override=*/ true,
|
||||
|
|
Loading…
Reference in a new issue