[riot-notifications] [RIOT] ng_ipv6: fix behavior for multicast over multiple interfaces (#3245)

Martine Lenders notifications at github.com
Tue Jun 23 23:47:10 CEST 2015

> @@ -308,7 +308,8 @@ static int _fill_ipv6_hdr(kernel_pid_t iface, ng_pktsnip_t *ipv6,
>          /* We deal with multiple interfaces here (multicast) => possible
>           * different source addresses => duplication of payload needed */
> -        while (ptr != payload) {
> +        while (ptr != payload->next) {

For sending it is the upper layer (the inner header). I check for `payload->next` so the payload header gets duplicated too. Since the checksum field is in there and the checksum might be different (due to different source addresses in IPv6) this is necessary.

Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150623/4f9fb6a9/attachment.html>

More information about the notifications mailing list