diff options
author | Jon Franklin <jvfranklin@gmail.com> | 2020-03-26 13:22:29 -0500 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2020-03-28 18:41:46 +0100 |
commit | 8086a3db780f8a4ee6943a3ef2f774fc78105327 (patch) | |
tree | 748e9a4367d3a01679d419f4f08034081c38d21a /iface.h | |
parent | fdf702ec67f8eefbd3ad5bb63f193dce01ef6201 (diff) |
llmnrd: don't exit on SO_BINDTODEVICE failure
The -i option requires running llmnrd as root for SO_BINDTODEVICE to
work. Packets are still filtered based on interface because only rtnl
messages for addresses of the specified interface are considered in
iface_nlmsg_change_addr. Instead log a warning only if SO_BINDTODEVICE
fails.
Signed-off-by: Jon Franklin <jvfranklin@gmail.com>
[tk: small adjustments to commit message, check return value of iface_init]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'iface.h')
-rw-r--r-- | iface.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ enum iface_event_type { typedef void (*iface_event_handler_t)(enum iface_event_type, unsigned char af, unsigned int ifindex); -void iface_init(int sock, const char *iface, bool ipv6, +int iface_init(int sock, const char *iface, bool ipv6, iface_event_handler_t event_handler); int iface_recv(int sock); |