mirror of
https://github.com/nmap/nmap.git
synced 2026-01-11 00:49:02 +00:00
Remove more vestiges of Windows raw socket quirks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user