ping: check for ICMPv6 unreachable packets when in IPv6

This commit is contained in:
Nikos Mavrogiannopoulos
2015-05-27 11:36:24 +02:00
parent a0c2ac4c3f
commit b63f0b4cce

View File

@@ -321,7 +321,7 @@ int icmp_ping6(main_server_st * s,
if (pkt->icmp6_id == id1) {
if (pkt->icmp6_type == ICMP6_ECHO_REPLY)
gotreply++;
else if (pkt->icmp6_type == ICMP_DEST_UNREACH)
else if (pkt->icmp6_type == ICMP6_DST_UNREACH)
unreachable++;
}
}