mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Show a warning whenever raw socket sending is attempted on Windows--not just
when using --send-ip.
This commit is contained in:
parent
e02f4bc983
commit
4ff30d9b99
6 changed files with 30 additions and 0 deletions
|
|
@ -216,6 +216,9 @@ Traceroute::Traceroute (const char *device_name, devtype type, const scan_lists
|
|||
if (ethsd == NULL)
|
||||
fatal ("dnet: Failed to open device %s", device_name);
|
||||
} else {
|
||||
#ifdef WIN32
|
||||
win32_warn_raw_sockets(device_name);
|
||||
#endif
|
||||
if ((fd = socket (AF_INET, SOCK_RAW, IPPROTO_RAW)) < 0)
|
||||
pfatal ("Traceroute: socket troubles");
|
||||
broadcast_socket (fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue