mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
Moving block_socket() and unblock_socket() from Nmap to Nbase for reuse in
Nsock and Ncat
This commit is contained in:
4
tcpip.h
4
tcpip.h
@@ -700,7 +700,6 @@ bool setTargetNextHopMAC(Target *target);
|
||||
|
||||
int islocalhost(const struct in_addr * const addr);
|
||||
int isipprivate(const struct in_addr * const addr);
|
||||
int unblock_socket(int sd);
|
||||
|
||||
// Takes a protocol number like IPPROTO_TCP, IPPROTO_UDP, or
|
||||
// IPPROTO_IP and returns a ascii representation (or "unknown" if it
|
||||
@@ -746,9 +745,6 @@ void max_rcvbuf(int sd);
|
||||
max allowed */
|
||||
int max_sd();
|
||||
|
||||
/* Convert a socket to blocking mode */
|
||||
int block_socket(int sd);
|
||||
|
||||
/* Give broadcast permission to a socket */
|
||||
void broadcast_socket(int sd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user