1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

Add socket_bindtodevice function to Nbase.

The Linux-specific SO_BINDTODEVICE sockopt causes packets to be sent on
a specific interface, in cases where merely setting the source address
does not uniquely determine the interface.
This commit is contained in:
david
2012-10-03 15:43:22 +00:00
parent a53e00afa1
commit 6ec453e4e8
2 changed files with 13 additions and 0 deletions

View File

@@ -459,6 +459,7 @@ int inheritable_socket(int af, int style, int protocol);
int dup_socket(int sd);
int unblock_socket(int sd);
int block_socket(int sd);
int socket_bindtodevice(int sd, const char *device);
/* CRC32 Cyclic Redundancy Check */
unsigned long nbase_crc32(unsigned char *buf, int len);