1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Move win32_fatal_raw_sockets out of nmap_raw_socket.

For the same reason and with the same exception (nse_dnet.cc) as in
r30159.
This commit is contained in:
david
2012-10-31 17:00:55 +00:00
parent 03946ba2f5
commit 7b18ea1bc0
8 changed files with 24 additions and 17 deletions

View File

@@ -878,7 +878,10 @@ TracerouteState::TracerouteState(std::vector<Target *> &targets) {
fatal("dnet: failed to open device %s", targets[0]->deviceName());
rawsd = -1;
} else {
rawsd = nmap_raw_socket(targets[0]->deviceName());
#ifdef WIN32
win32_fatal_raw_sockets(targets[0]->deviceName());
#endif
rawsd = nmap_raw_socket();
if (rawsd < 0)
pfatal("traceroute: socket troubles");
ethsd = NULL;