mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ea1708b402
`_demux()` might change `pkt->data` in all kind of ways (moving it due to `gnrc_pktbuf_mark()`, though unlikely; releasing it, because e.g. it starts with a fragment header that marks a fragmented packet containing only one fragment, etc.) so accessing the pointer *after* calling `_demux()` is somewhat playing with fire. This change avoids this by storing the value of `ext_hdr->nh` (all we are interested in here) in a temporary variable that then is used to set the out-parameter `nh`. `protnum` needs to be unchanged before the call to `_demux()` as it was set by the previous iteration and determines what extension header actually is handled. |
||
---|---|---|
.. | ||
application_layer | ||
link_layer | ||
netapi | ||
netif | ||
netreg | ||
nettest | ||
network_layer | ||
pkt | ||
pktbuf | ||
pktbuf_malloc | ||
pktbuf_static | ||
pktdump | ||
priority_pktqueue | ||
routing/rpl | ||
sock | ||
transport_layer | ||
Makefile |