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 <axel.lin@ingics.com>
diff --git a/src/core/ipv4/icmp.c b/src/core/ipv4/icmp.c
index e60e448..6f5311d 100644
--- a/src/core/ipv4/icmp.c
+++ b/src/core/ipv4/icmp.c
@@ -247,7 +247,7 @@
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) {