[riot-notifications] [RIOT] udp: fix wrong usage of pkt pointer (#3918)

Martine Lenders notifications at github.com
Mon Sep 21 20:39:17 CEST 2015


> @@ -130,9 +130,9 @@ static void _receive(gnrc_pktsnip_t *pkt)
>      port = (uint32_t)byteorder_ntohs(hdr->dst_port);
>  
>      /* send payload to receivers */
> -    if (!gnrc_netapi_dispatch_receive(GNRC_NETTYPE_UDP, port, pkt)) {
> +    if (!gnrc_netapi_dispatch_receive(GNRC_NETTYPE_UDP, port, udp)) {

(confirmed by my packet dump

```
1442859872.171887;m3-9;> udp send fe80::3432:4833:46d5:9d12 1337 hey
1442859872.172833;m3-9;PKTDUMP: data received:
1442859872.173814;m3-9;~~ SNIP  0 - size:   8 byte, type: NETTYPE_UDP (4)
1442859872.174802;m3-9;   src-port:  1337  dst-port:  1337
1442859872.174906;m3-9;   length: 11  cksum: 0x45664
1442859872.177047;m3-9;~~ SNIP  1 - size:  40 byte, type: NETTYPE_IPV6 (2)
1442859872.177160;m3-9;traffic class: 0x00 (ECN: 0x0, DSCP: 0x00)
1442859872.177850;m3-9;flow label: 0x00000
1442859872.178827;m3-9;length: 11  next header: 17  hop limit: 64
1442859872.179832;m3-9;source address: fe80::3432:4833:46d5:9d12
1442859872.180833;m3-9;destination address: fe80::3432:4833:46d5:9d12
1442859872.181832;m3-9;~~ PKT    -  2 snips, total size:  48 byte
1442859872.182815;m3-9;Success: send 40 byte to fe80::3432:4833:46d5:9d12:1337
```
where is the payload ;-))

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


More information about the notifications mailing list