]>
Commit | Line | Data |
---|---|---|
28cd9a8f GKH |
1 | From 6d24c0e3b60f801fa166755ff5f02347b5a23f4a Mon Sep 17 00:00:00 2001 |
2 | From: Hannes Frederic Sowa <hannes@stressinduktion.org> | |
3 | Date: Tue, 6 Nov 2012 16:18:41 +0000 | |
4 | Subject: ipv6: send unsolicited neighbour advertisements to all-nodes | |
5 | ||
6 | ||
7 | From: Hannes Frederic Sowa <hannes@stressinduktion.org> | |
8 | ||
9 | [ Upstream commit 60713a0ca7fd6651b951cc1b4dbd528d1fc0281b ] | |
10 | ||
11 | As documented in RFC4861 (Neighbor Discovery for IP version 6) 7.2.6., | |
12 | unsolicited neighbour advertisements should be sent to the all-nodes | |
13 | multicast address. | |
14 | ||
15 | Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> | |
16 | Signed-off-by: David S. Miller <davem@davemloft.net> | |
17 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
18 | --- | |
19 | net/ipv6/ndisc.c | 3 +-- | |
20 | 1 file changed, 1 insertion(+), 2 deletions(-) | |
21 | ||
22 | --- a/net/ipv6/ndisc.c | |
23 | +++ b/net/ipv6/ndisc.c | |
24 | @@ -535,7 +535,7 @@ static void ndisc_send_unsol_na(struct n | |
25 | { | |
26 | struct inet6_dev *idev; | |
27 | struct inet6_ifaddr *ifa; | |
28 | - struct in6_addr mcaddr; | |
29 | + struct in6_addr mcaddr = IN6ADDR_LINKLOCAL_ALLNODES_INIT; | |
30 | ||
31 | idev = in6_dev_get(dev); | |
32 | if (!idev) | |
33 | @@ -543,7 +543,6 @@ static void ndisc_send_unsol_na(struct n | |
34 | ||
35 | read_lock_bh(&idev->lock); | |
36 | list_for_each_entry(ifa, &idev->addr_list, if_list) { | |
37 | - addrconf_addr_solict_mult(&ifa->addr, &mcaddr); | |
38 | ndisc_send_na(dev, NULL, &mcaddr, &ifa->addr, | |
39 | /*router=*/ !!idev->cnf.forwarding, | |
40 | /*solicited=*/ false, /*override=*/ true, |