mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3078 from OlegHahm/fix_ipv6_ext
ng_ipv6: only try to parse ext header if enabled
This commit is contained in:
commit
9941671b42
@ -78,6 +78,7 @@ void ng_ipv6_demux(kernel_pid_t iface, ng_pktsnip_t *pkt, uint8_t nh)
|
||||
case NG_PROTNUM_ICMPV6:
|
||||
ng_icmpv6_demux(iface, pkt);
|
||||
break;
|
||||
#ifdef MODULE_NG_IPV6_EXT
|
||||
case NG_PROTNUM_IPV6_EXT_HOPOPT:
|
||||
case NG_PROTNUM_IPV6_EXT_DST:
|
||||
case NG_PROTNUM_IPV6_EXT_RH:
|
||||
@ -90,6 +91,7 @@ void ng_ipv6_demux(kernel_pid_t iface, ng_pktsnip_t *pkt, uint8_t nh)
|
||||
ng_pktbuf_release(pkt);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
case NG_PROTNUM_IPV6:
|
||||
_decapsulate(pkt);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user