Skip to content

Commit 816b782

Browse files
rlubosnashif
authored andcommitted
net: ipv6: Send Neighbor Solicitations in PROBE state as unicast
According to RFC 4861, ch. 7.3.3: "Upon entering the PROBE state, a node sends a unicast Neighbor Solicitation message to the neighbor using the cached link-layer address." Zephyr's implementation was not compliant with behavior, as instead of sending a unicast probe for reachability confirmation, it was sending a multicast packet instead. This commit fixes it. Signed-off-by: Robert Lubos <[email protected]> (cherry picked from commit 8cd213e)
1 parent 8e4856c commit 816b782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/ip/ipv6_nbr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1549,7 +1549,7 @@ static void ipv6_nd_reachable_timeout(struct k_work *work)
15491549
data->ns_count);
15501550

15511551
ret = net_ipv6_send_ns(nbr->iface, NULL, NULL,
1552-
NULL, &data->addr,
1552+
&data->addr, &data->addr,
15531553
false);
15541554
if (ret < 0) {
15551555
NET_DBG("Cannot send NS (%d)", ret);

0 commit comments

Comments
 (0)