mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Remove more vestiges of Windows raw socket quirks
This commit is contained in:
parent
dd0ace6d4a
commit
8f3364a441
1 changed files with 2 additions and 4 deletions
|
|
@ -292,8 +292,7 @@ int unblock_socket(int sd) {
|
|||
#ifdef WIN32
|
||||
unsigned long one = 1;
|
||||
|
||||
if (sd != 501) /* Hack related to WinIP Raw Socket support */
|
||||
ioctlsocket(sd, FIONBIO, &one);
|
||||
ioctlsocket(sd, FIONBIO, &one);
|
||||
|
||||
return 0;
|
||||
#else
|
||||
|
|
@ -314,8 +313,7 @@ int block_socket(int sd) {
|
|||
#ifdef WIN32
|
||||
unsigned long options = 0;
|
||||
|
||||
if (sd != 501)
|
||||
ioctlsocket(sd, FIONBIO, &options);
|
||||
ioctlsocket(sd, FIONBIO, &options);
|
||||
|
||||
return 0;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue