From 9930756d7c5ac0cd38fb0a523c596265ccc7cea6 Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Thu, 10 Mar 2016 11:34:23 +0100 Subject: [PATCH] uip6: restore proto after calling remove_ext_hdr --- core/net/ipv6/uip6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/net/ipv6/uip6.c b/core/net/ipv6/uip6.c index 5cbf39203..55bebcfb5 100644 --- a/core/net/ipv6/uip6.c +++ b/core/net/ipv6/uip6.c @@ -1473,6 +1473,7 @@ uip_process(uint8_t flag) udp_input: remove_ext_hdr(); + UIP_IP_BUF->proto = UIP_PROTO_UDP; PRINTF("Receiving UDP packet\n"); @@ -1593,6 +1594,7 @@ uip_process(uint8_t flag) tcp_input: remove_ext_hdr(); + UIP_IP_BUF->proto = UIP_PROTO_TCP; UIP_STAT(++uip_stat.tcp.recv); PRINTF("Receiving TCP packet\n");