diff options
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h index 2698ee2..faa7fa3 100644 --- a/src/socket.h +++ b/src/socket.h @@ -2,6 +2,7 @@ #define POTD_SOCKET_H 1 #include <netdb.h> +#include <net/if.h> #define POTD_BACKLOG 1 @@ -41,4 +42,10 @@ int socket_close(psocket *psock); void socket_clone(const psocket *src, psocket *dst); +ssize_t socket_get_ifnames(const psocket *test_sock, char name[][IFNAMSIZ], + size_t siz, int loopback_only); + +int socket_set_ifaddr(const psocket *test_sock, + const char *ifname, const char *addr, const char *mask); + #endif |