mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3232 from haukepetersen/ng_fix_udp_payloadtype
net/ng_udp: mark received payload as NETTYPE_UNDEF
This commit is contained in:
commit
72e2187b75
@ -114,6 +114,9 @@ static void _receive(ng_pktsnip_t *pkt)
|
|||||||
ng_pktbuf_release(pkt);
|
ng_pktbuf_release(pkt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/* mark payload as Type: UNDEF */
|
||||||
|
pkt->type = NG_NETTYPE_UNDEF;
|
||||||
|
/* get explicit pointer to UDP header */
|
||||||
hdr = (ng_udp_hdr_t *)udp->data;
|
hdr = (ng_udp_hdr_t *)udp->data;
|
||||||
|
|
||||||
LL_SEARCH_SCALAR(pkt, ipv6, type, NG_NETTYPE_IPV6);
|
LL_SEARCH_SCALAR(pkt, ipv6, type, NG_NETTYPE_IPV6);
|
||||||
|
Loading…
Reference in New Issue
Block a user