Merge pull request #452 from AriZuu/uip6-udp-stats-twice-fix

Received UDP packet was counted twice in statistics, first in udp_input ...
This commit is contained in:
Adam Dunkels 2013-11-22 07:18:47 -08:00
commit 5f7b75d660

View file

@ -1460,7 +1460,6 @@ uip_process(uint8_t flag)
remove_ext_hdr(); remove_ext_hdr();
PRINTF("Receiving UDP packet\n"); 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 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 UDP/IP headers, but let the UDP application do all the hard