mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fix -PU and -PY for IPv6
This commit is contained in:
parent
d9422b6d05
commit
c1227faf0d
1 changed files with 2 additions and 2 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue