1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

Add nsock_setdevice function.

This function allows setting the device that will be used in
SO_BINDTODEVICE setsockopt calls for all new sockets.
This commit is contained in:
david
2012-10-03 15:43:16 +00:00
parent b0c3b7b1f4
commit 3e9f862ce3
4 changed files with 23 additions and 0 deletions

View File

@@ -183,6 +183,9 @@ void nsp_settrace(nsock_pool nsp, FILE *file, int level, const struct timeval *b
* sockets (value of optval will be used directly in the setsockopt() call). */
void nsp_setbroadcast(nsock_pool nsp, int optval);
/* Sets the name of the interface for new sockets to bind to. */
void nsp_setdevice(nsock_pool nsp, const char *device);
/* Initializes an Nsock pool to create SSL connections. This sets an internal
* SSL_CTX, which is like a template that sets options for all connections that
* are made from it. Returns the SSL_CTX so you can set your own options. */