[riot-notifications] [RIOT] net: initial import of the ZEP protocol (#2627)

Oleg Hahm notifications at github.com
Tue Jun 30 18:48:51 CEST 2015


> +
> +    new = hdr;
> +
> +    hdr = ng_ipv6_hdr_build(new, NULL, 0, (uint8_t *) & (dev->dst),
> +                            sizeof(ng_ipv6_addr_t));
> +
> +    if (hdr == NULL) {
> +        DEBUG("zep: could not allocate IPv6 header in pktbuf\n");
> +        ng_pktbuf_release(pkt);
> +        ng_pktbuf_release(new);
> +        return -ENOBUFS;
> +    }
> +
> +    new = hdr;
> +
> +    mhr_offset = _zep_hdr_fill(dev, zep, payload_len + hdr_len + 2);

What is the `2` standing for? Can we have a constant or macro?

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/2627/files#r33595049
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150630/dbabaab2/attachment-0001.html>


More information about the notifications mailing list