From a4f3bf49d3274bd1d88137b0e5bbf9e55234b768 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Mon, 22 Jun 2015 16:37:03 +0200 Subject: [PATCH] net/ng_udp: mark received payload as NETTYPE_UNDEF --- sys/net/transport_layer/ng_udp/ng_udp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/transport_layer/ng_udp/ng_udp.c b/sys/net/transport_layer/ng_udp/ng_udp.c index aaff2c80b3..da45b11284 100644 --- a/sys/net/transport_layer/ng_udp/ng_udp.c +++ b/sys/net/transport_layer/ng_udp/ng_udp.c @@ -114,6 +114,9 @@ static void _receive(ng_pktsnip_t *pkt) ng_pktbuf_release(pkt); return; } + /* mark payload as Type: UNDEF */ + pkt->type = NG_NETTYPE_UNDEF; + /* get explicit pointer to UDP header */ hdr = (ng_udp_hdr_t *)udp->data; LL_SEARCH_SCALAR(pkt, ipv6, type, NG_NETTYPE_IPV6);