uip6: restore proto after calling remove_ext_hdr

This commit is contained in:
Simon Duquennoy 2016-03-10 11:34:23 +01:00
parent add5a8be67
commit 9930756d7c
1 changed files with 2 additions and 0 deletions

View File

@ -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");