mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +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:
|
case NG_PROTNUM_ICMPV6:
|
||||||
ng_icmpv6_demux(iface, pkt);
|
ng_icmpv6_demux(iface, pkt);
|
||||||
break;
|
break;
|
||||||
|
#ifdef MODULE_NG_IPV6_EXT
|
||||||
case NG_PROTNUM_IPV6_EXT_HOPOPT:
|
case NG_PROTNUM_IPV6_EXT_HOPOPT:
|
||||||
case NG_PROTNUM_IPV6_EXT_DST:
|
case NG_PROTNUM_IPV6_EXT_DST:
|
||||||
case NG_PROTNUM_IPV6_EXT_RH:
|
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);
|
ng_pktbuf_release(pkt);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
case NG_PROTNUM_IPV6:
|
case NG_PROTNUM_IPV6:
|
||||||
_decapsulate(pkt);
|
_decapsulate(pkt);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user