mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-10 14:54:46 +00:00
uip6: restore proto after calling remove_ext_hdr
This commit is contained in:
parent
add5a8be67
commit
9930756d7c
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user