Bug fix: properly use unspecified source address for router solicitation

if needed.
This commit is contained in:
Ivan Delamer 2015-05-05 13:00:17 -06:00
parent 24f486261a
commit 2aec025e16

View File

@ -1030,7 +1030,7 @@ nd6_send_rs(struct netif * netif)
/* Send the packet out. */
ND6_STATS_INC(nd6.xmit);
err = ip6_output_if(p, src_addr, &multicast_address,
err = ip6_output_if(p, (src_addr == IP6_ADDR_ANY6) ? NULL : src_addr, &multicast_address,
LWIP_ICMP6_HL, 0, IP6_NEXTH_ICMP6, netif);
pbuf_free(p);