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

Oleg Hahm notifications at github.com
Tue Jun 30 18:36:38 CEST 2015


> +
> +    zep = new->data;
> +
> +    hdr = ng_udp_hdr_build(new, (uint8_t *)(&(dev->src_port)), sizeof(uint16_t),
> +                           (uint8_t *)(&(dev->dst_port)), sizeof(uint16_t));
> +
> +    if (hdr == NULL) {
> +        DEBUG("zep: could not allocate UDP header in pktbuf\n");
> +        ng_pktbuf_release(pkt);
> +        ng_pktbuf_release(new);
> +        return -ENOBUFS;
> +    }
> +
> +    new = hdr;
> +
> +    hdr = ng_ipv6_hdr_build(new, NULL, 0, (uint8_t *) & (dev->dst),

no space after address operator: `&(dev->dst)`

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


More information about the notifications mailing list