mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Inline broadcast_socket(), only used in one place.
Also remove the check for the special socket value 501, which is a vestige of a workaround leftover from when raw sockets mostly worked on Windows. That code was removed in r2812 back in 2005.
This commit is contained in:
3
tcpip.h
3
tcpip.h
@@ -453,9 +453,6 @@ int gettcpopt_ts(struct tcp_hdr *tcp, u32 *timestamp, u32 *echots);
|
||||
/* Maximize the receive buffer of a socket descriptor (up to 500K) */
|
||||
void max_rcvbuf(int sd);
|
||||
|
||||
/* Give broadcast permission to a socket */
|
||||
void broadcast_socket(int sd);
|
||||
|
||||
/* Do a receive (recv()) on a socket and stick the results (upt to
|
||||
len) into buf . Give up after 'seconds'. Returns the number of
|
||||
bytes read (or -1 in the case of an error. It only does one recv
|
||||
|
||||
Reference in New Issue
Block a user