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:
parent
1f8e1cbbf3
commit
a4f3bf49d3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user