The default case of the ICMPv6 type switch prints ", destination
unreachable, unknown icmp6 type (N)". Every ICMPv6 type that is not
explicitly handled is therefore mislabelled as a destination unreachable
message.
Just report "unknown icmp6 type" instead.
Fixes: 35b37756f4a3 ("add IPv6 support to tcpdump parser")
Signed-off-by: Sven Eckelmann <[email protected]>
---
tcpdump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tcpdump.c b/tcpdump.c
index 1094069..f9fb0c1 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -692,7 +692,7 @@ static void dump_ipv6(unsigned char *packet_buff, ssize_t
buff_len,
nd_nas_target, buff_len);
break;
default:
- printf(", destination unreachable, unknown icmp6 type
(%u)\n",
+ printf(", unknown icmp6 type (%u)\n",
icmphdr->icmp6_type);
break;
}
--
2.47.3