Skip to content

Commit

Permalink
gnrc_ipv6_ext: use fragment reassembly if available
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jun 3, 2019
1 parent dcf453c commit c9873a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "net/gnrc/pktbuf.h"
#include "net/gnrc/icmpv6/error.h"
#include "net/gnrc/ipv6.h"
#include "net/gnrc/ipv6/ext/frag.h"
#include "net/gnrc/ipv6/ext/rh.h"

#include "net/gnrc/ipv6/ext.h"
Expand Down Expand Up @@ -256,10 +257,12 @@ static gnrc_pktsnip_t *_demux(gnrc_pktsnip_t *pkt, unsigned protnum)

break;
#endif /* MODULE_GNRC_IPV6_EXT_RH */

case PROTNUM_IPV6_EXT_FRAG:
#ifdef MODULE_GNRC_IPV6_EXT_FRAG
return gnrc_ipv6_ext_frag_reass(pkt);
#endif /* MODULE_GNRC_IPV6_EXT_FRAG */
case PROTNUM_IPV6_EXT_HOPOPT:
case PROTNUM_IPV6_EXT_DST:
case PROTNUM_IPV6_EXT_FRAG:
case PROTNUM_IPV6_EXT_AH:
case PROTNUM_IPV6_EXT_ESP:
case PROTNUM_IPV6_EXT_MOB:
Expand Down

0 comments on commit c9873a4

Please sign in to comment.