mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
ping: check for ICMPv6 unreachable packets when in IPv6
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user