Received UDP packet was counted twice in statistics, first in udp_input and then again in udp_found.

Fix this to use same logic as in uip.c: valid packet is counted only in udp_found.
This commit is contained in:
Ari Suutari 2013-11-22 08:16:05 +02:00
parent dbe074bdaf
commit c1c64dd1cc

View file

@ -1460,7 +1460,6 @@ uip_process(uint8_t flag)
remove_ext_hdr();
PRINTF("Receiving UDP packet\n");
UIP_STAT(++uip_stat.udp.recv);
/* UDP processing is really just a hack. We don't do anything to the
UDP/IP headers, but let the UDP application do all the hard