From f46d59e0dc7b54a3f4a7ead2fd2d4258b3f56782 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 17 Aug 2016 08:41:52 +0200 Subject: 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 --- socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'socket.h') diff --git a/socket.h b/socket.h index 93c41a0..49d999b 100644 --- a/socket.h +++ b/socket.h @@ -22,8 +22,8 @@ #include #include -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); -- cgit v1.2.3-54-g00ecf