From 83c19abadc7f32ff75fb289c250035f205b9b5d3 Mon Sep 17 00:00:00 2001 From: david Date: Sun, 29 May 2011 06:18:57 +0000 Subject: [PATCH] Handle ICMP_ECHO_REPLY in icmp_to_reason. --- portreasons.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/portreasons.cc b/portreasons.cc index 6e4b6f4d7..d49186680 100644 --- a/portreasons.cc +++ b/portreasons.cc @@ -172,6 +172,9 @@ reason_codes icmp_to_reason(int icmp_type, int icmp_code){ switch(icmp_type){ + case ICMP_ECHOREPLY: + return ER_ECHOREPLY; + case ICMP_UNREACH: switch(icmp_code){ case ICMP_UNREACH_NET: