mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49: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:
parent
03946ba2f5
commit
7b18ea1bc0
8 changed files with 24 additions and 17 deletions
|
|
@ -184,9 +184,12 @@ void FPNetworkControl::init(const char *ifname, devtype iftype) {
|
|||
fatal("dnet: failed to open device %s", ifname);
|
||||
this->rawsd = -1;
|
||||
} else {
|
||||
#ifdef WIN32
|
||||
win32_fatal_raw_sockets(ifname);
|
||||
#endif
|
||||
if (this->rawsd >= 0)
|
||||
close(this->rawsd);
|
||||
rawsd = nmap_raw_socket(ifname);
|
||||
rawsd = nmap_raw_socket();
|
||||
if (rawsd < 0)
|
||||
pfatal("Couldn't obtain raw socket in %s", __func__);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue