From 2aec025e16b35ae90c96deee16300643fd2e5748 Mon Sep 17 00:00:00 2001 From: Ivan Delamer Date: Tue, 5 May 2015 13:00:17 -0600 Subject: [PATCH] Bug fix: properly use unspecified source address for router solicitation if needed. --- src/core/ipv6/nd6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv6/nd6.c b/src/core/ipv6/nd6.c index 0dc3e529..9f8a59d0 100644 --- a/src/core/ipv6/nd6.c +++ b/src/core/ipv6/nd6.c @@ -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);