mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Fix -PU and -PY for IPv6
This commit is contained in:
@@ -709,7 +709,7 @@ int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
|||||||
probeI--;
|
probeI--;
|
||||||
probe = *probeI;
|
probe = *probeI;
|
||||||
|
|
||||||
if (o.af() != AF_INET || probe->protocol() != IPPROTO_UDP)
|
if (probe->protocol() != IPPROTO_UDP)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Ensure the connection info matches. */
|
/* Ensure the connection info matches. */
|
||||||
@@ -751,7 +751,7 @@ int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
|||||||
probeI--;
|
probeI--;
|
||||||
probe = *probeI;
|
probe = *probeI;
|
||||||
|
|
||||||
if (o.af() != AF_INET || probe->protocol() != IPPROTO_SCTP)
|
if (probe->protocol() != IPPROTO_SCTP)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Ensure the connection info matches. */
|
/* Ensure the connection info matches. */
|
||||||
|
|||||||
Reference in New Issue
Block a user