We now know how to select our source address for outgoing routable multicast datagrams

This commit is contained in:
George Oikonomou 2011-11-11 11:51:25 +00:00 committed by George Oikonomou
parent 64c21638cd
commit 0ad09aa842
1 changed files with 4 additions and 0 deletions

View File

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