Show a warning whenever raw socket sending is attempted on Windows--not just

when using --send-ip.
This commit is contained in:
david 2008-11-24 17:52:25 +00:00
parent e02f4bc983
commit 4ff30d9b99
6 changed files with 30 additions and 0 deletions

View file

@ -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);