From 731ef199704e44455c88567e88a1fed882cda4d3 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 4 Jun 2019 10:19:01 +0200 Subject: [PATCH] gnrc_ipv6_ext: fix packet snip type The `pkt->type` of an extension header should be `GNRC_NETTYPE_IPV6_EXT` so it can be parsed properly as an extension after building. --- sys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c b/sys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c index 441b646e96..f7d23d9981 100644 --- a/sys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c +++ b/sys/net/gnrc/network_layer/ipv6/ext/gnrc_ipv6_ext.c @@ -295,7 +295,7 @@ gnrc_pktsnip_t *gnrc_ipv6_ext_build(gnrc_pktsnip_t *ipv6, gnrc_pktsnip_t *next, } } - snip = gnrc_pktbuf_add(next, NULL, size, GNRC_NETTYPE_IPV6); + snip = gnrc_pktbuf_add(next, NULL, size, GNRC_NETTYPE_IPV6_EXT); if (snip == NULL) { return NULL;