From 8ffd29616aee02ea0c8134e32b10e86422b90bc8 Mon Sep 17 00:00:00 2001 From: Ari Suutari Date: Fri, 15 Nov 2013 08:00:41 +0200 Subject: [PATCH] Fix UDP statistics also in ipv6 code. --- core/net/uip6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/uip6.c b/core/net/uip6.c index 813c4d9b1..e79486ff1 100644 --- a/core/net/uip6.c +++ b/core/net/uip6.c @@ -1512,10 +1512,10 @@ uip_process(uint8_t flag) } } PRINTF("udp: no matching connection found\n"); + UIP_STAT(++uip_stat.udp.drop); #if UIP_UDP_SEND_UNREACH_NOPORT uip_icmp6_error_output(ICMP6_DST_UNREACH, ICMP6_DST_UNREACH_NOPORT, 0); - UIP_STAT(++uip_stat.ip.drop); goto send; #else goto drop; @@ -1523,6 +1523,7 @@ uip_process(uint8_t flag) udp_found: PRINTF("In udp_found\n"); + UIP_STAT(++uip_stat.udp.recv); uip_conn = NULL; uip_flags = UIP_NEWDATA;