From 0ad09aa842ab4619f8e978e8c268b74ad37b114b Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Fri, 11 Nov 2011 11:51:25 +0000 Subject: [PATCH] We now know how to select our source address for outgoing routable multicast datagrams --- core/net/ipv6/uip-ds6.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/net/ipv6/uip-ds6.c b/core/net/ipv6/uip-ds6.c index 3594f46e1..c5c169afe 100644 --- a/core/net/ipv6/uip-ds6.c +++ b/core/net/ipv6/uip-ds6.c @@ -512,6 +512,10 @@ uip_ds6_select_src(uip_ipaddr_t *src, uip_ipaddr_t *dst) } } } +#if UIP_IPV6_MULTICAST + } else if(uip_is_addr_mcast_routable(dst)) { + matchaddr = uip_ds6_get_global(ADDR_PREFERRED); +#endif } else { matchaddr = uip_ds6_get_link_local(ADDR_PREFERRED); }