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); }