mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Allow -PO (protocol/NH ping) for IPv6.
Works for me.
This commit is contained in:
parent
26dbb3bed8
commit
1155196df5
1 changed files with 2 additions and 2 deletions
|
|
@ -425,8 +425,8 @@ dialog where you can start NPF if you have administrator privileges.";
|
|||
fatal("Sorry, SCTP INIT Ping (-PY) only works if you are root (because we need to read raw responses off the wire)");
|
||||
}
|
||||
|
||||
if ((pingtype & PINGTYPE_PROTO) && (!isr00t || af() != AF_INET)) {
|
||||
fatal("Sorry, IPProto Ping (-PO) only works if you are root (because we need to read raw responses off the wire) and only for IPv4");
|
||||
if ((pingtype & PINGTYPE_PROTO) && (!isr00t)) {
|
||||
fatal("Sorry, IPProto Ping (-PO) only works if you are root (because we need to read raw responses off the wire)");
|
||||
}
|
||||
|
||||
if (ipprotscan && (TCPScan() || UDPScan() || SCTPScan())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue