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

Cenk Gündoğan notifications at github.com
Mon Sep 21 20:34:41 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)) {

it seems to be just this line that breaks the current state. But I don't think this is really a solution here... I think you intented to send the **payload** to the listener and not the udp snip itself. This is what I changed here now. pktdump confirms, it begins printing with the udp snip instead of the payload. So the actual problem may be somewhere else .. maybe in pktdump?

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


More information about the notifications mailing list