summaryrefslogtreecommitdiff
path: root/socket.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-08-17 08:41:52 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-17 08:41:52 +0200
commitf46d59e0dc7b54a3f4a7ead2fd2d4258b3f56782 (patch)
tree076ca9422193ee640dc16c69c0923a4c9feeaec1 /socket.h
parentf1081b6b0f47160f83ded689d956bd577819d752 (diff)
llmnrd: Allow to bind to a specific network interface
Add a command line option -i/--interface which allows to bind the llmnrd sockets to a specific interface. If used, requests are only answered on the specified interface. Example: llmnrd -i eth0 Closes #9 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.h b/socket.h
index 93c41a0..49d999b 100644
--- a/socket.h
+++ b/socket.h
@@ -22,8 +22,8 @@
#include <stdbool.h>
#include <stdint.h>
-int socket_open_ipv4(uint16_t port);
-int socket_open_ipv6(uint16_t port);
+int socket_open_ipv4(uint16_t port, const char *iface);
+int socket_open_ipv6(uint16_t port, const char *iface);
int socket_open_rtnl(bool ipv6);
int socket_mcast_group_ipv4(int sock, unsigned int ifindex, bool join);