1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

net/ng_udp: mark received payload as NETTYPE_UNDEF

This commit is contained in:
Hauke Petersen 2015-06-22 16:37:03 +02:00
parent 1f8e1cbbf3
commit a4f3bf49d3

View File

@ -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);