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

View file

@ -1473,6 +1473,7 @@ uip_process(uint8_t flag)
udp_input: udp_input:
remove_ext_hdr(); remove_ext_hdr();
UIP_IP_BUF->proto = UIP_PROTO_UDP;
PRINTF("Receiving UDP packet\n"); PRINTF("Receiving UDP packet\n");
@ -1593,6 +1594,7 @@ uip_process(uint8_t flag)
tcp_input: tcp_input:
remove_ext_hdr(); remove_ext_hdr();
UIP_IP_BUF->proto = UIP_PROTO_TCP;
UIP_STAT(++uip_stat.tcp.recv); UIP_STAT(++uip_stat.tcp.recv);
PRINTF("Receiving TCP packet\n"); PRINTF("Receiving TCP packet\n");