From c1c64dd1cc01f77825473c312c7796171a9ddfd2 Mon Sep 17 00:00:00 2001 From: Ari Suutari Date: Fri, 22 Nov 2013 08:16:05 +0200 Subject: [PATCH] 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. --- core/net/uip6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/net/uip6.c b/core/net/uip6.c index e79486ff1..aa1ac4a2e 100644 --- a/core/net/uip6.c +++ b/core/net/uip6.c @@ -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