[riot-notifications] [RIOT] 6lowpan: eliminate unused compiler warning (#3976)

Martine Lenders notifications at github.com
Sun Sep 27 18:00:06 CEST 2015

> @@ -257,7 +257,7 @@ static void _send(gnrc_pktsnip_t *pkt)
>      /* IP should not send anything here if it is not a 6LoWPAN interface,
>       * so we don't need to check for NULL pointers */
> -    if (datagram_size <= iface->max_frag_size) {
> +    if (gnrc_pkt_len(pkt2->next) <= iface->max_frag_size) {

Sorry,  I meant the whole packet with `pkt2`, not just the packet snip. The snip `pkt2` is just the netif header. `pkt2->next` is the IPHC header or the IPv6 header respectively. So `gnrc_pkt_len(pkt2->next)` is the length of the whole (compressed) datagram, not just its payload.

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/20150927/cafa379c/attachment.html>

More information about the notifications mailing list