summaryrefslogtreecommitdiff
path: root/llmnrd.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-02-07 18:02:12 +0100
committerTobias Klauser <tklauser@distanz.ch>2017-02-07 18:06:40 +0100
commit70ff9183e5533d6f0bfccf20bb67ac18d0bbb493 (patch)
tree7a618109cac7d8ec35495699050d292e4c1de93f /llmnrd.c
parent8ec5ab31053707ae0ba93435f775800e5739ae6f (diff)
socket: ignore EADDRINUSE when joining multicast group
If an interface is configured with multiple addresses, llmnrd tries to join the LLMNR multicast group for each address instead of once per interface. Ideally llmnrd should track whether the group is already joined but since the kernel tells us that the group is already joined, just omit the error message on EADDRINUSE. This fixes the following error case: $ ip address add 2001:db8:1::/48 dev eth0 $ ./llmnrd -6 Starting llmnrd on port 5355, hostname foobar Added IPv4 address 127.0.0.1 on interface lo Added IPv4 address 10.42.0.42 on interface eth0 Added IPv6 address ::1 on interface lo Added IPv6 address 2001:db8:1:: on interface eth1 Error: Failed to join IPv6 multicast group on interface eth1: Address already in use Added IPv6 address fe80::xxxx:xxxx:xxxx:xxxx on interface eth0 Reference: #21 Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnrd.c')
0 files changed, 0 insertions, 0 deletions