From 92183bb3549a14b8a53e5eb86e05d22cd2272672 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 4 Dec 2016 20:00:43 +0800 Subject: [PATCH] icmp: Increment mib2.icmpintimeexcds counter if got ICMP_TE Increment mib2.icmpintimeexcds rather than mib2.icmpindestunreachs if got ICMP_TE. Signed-off-by: Axel Lin --- src/core/ipv4/icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c index e60e4481..6f5311d0 100644 --- a/src/core/ipv4/icmp.c +++ b/src/core/ipv4/icmp.c @@ -247,7 +247,7 @@ icmp_input(struct pbuf *p, struct netif *inp) if (type == ICMP_DUR) { MIB2_STATS_INC(mib2.icmpindestunreachs); } else if (type == ICMP_TE) { - MIB2_STATS_INC(mib2.icmpindestunreachs); + MIB2_STATS_INC(mib2.icmpintimeexcds); } else if (type == ICMP_PP) { MIB2_STATS_INC(mib2.icmpinparmprobs); } else if (type == ICMP_SQ) {