mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Quite if user tries ICMP echo/netmask/timestamp request ping with IPv6, sine we don't yet support it. Patch from Jah.
This commit is contained in:
parent
e7eafc8928
commit
732c32a09e
1 changed files with 4 additions and 0 deletions
|
|
@ -376,6 +376,10 @@ void NmapOps::ValidateOptions() {
|
|||
fatal("Ping scan is not valid with any other scan types (the other ones all include a ping scan");
|
||||
}
|
||||
|
||||
if (af() == AF_INET6 && (PINGTYPE_ICMP_PING || PINGTYPE_ICMP_MASK || PINGTYPE_ICMP_TS)) {
|
||||
fatal("ICMP Echo, Timestamp and Address Mask pings are only valid for IPv4.");
|
||||
}
|
||||
|
||||
if (sendpref == PACKET_SEND_NOPREF) {
|
||||
#ifdef WIN32
|
||||
sendpref = PACKET_SEND_ETH_STRONG;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue