From c1227faf0dbdfcfd85c4c8b376b3ab4ea57a5dbe Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 31 Oct 2022 20:50:20 +0000 Subject: [PATCH] Fix -PU and -PY for IPv6 --- scan_engine_raw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan_engine_raw.cc b/scan_engine_raw.cc index bcec2edbd..32cc05ddf 100644 --- a/scan_engine_raw.cc +++ b/scan_engine_raw.cc @@ -709,7 +709,7 @@ int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) { probeI--; probe = *probeI; - if (o.af() != AF_INET || probe->protocol() != IPPROTO_UDP) + if (probe->protocol() != IPPROTO_UDP) continue; /* Ensure the connection info matches. */ @@ -751,7 +751,7 @@ int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) { probeI--; probe = *probeI; - if (o.af() != AF_INET || probe->protocol() != IPPROTO_SCTP) + if (probe->protocol() != IPPROTO_SCTP) continue; /* Ensure the connection info matches. */