diff options
author | Steven Barth <steven@midlink.org> | 2015-07-13 23:08:19 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-07-14 00:04:37 +0200 |
commit | 83487419ce34d2a1f6fe22b437172882c9cd8785 (patch) | |
tree | 4bef9a60018d6d59ba5d646906cd8448cc172afa /src | |
parent | 69c2f4c4d46437299c9a61a51393771436b89015 (diff) |
ndp: remove bindtodevice workaround
Diffstat (limited to 'src')
-rw-r--r-- | src/ndp.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -215,10 +215,6 @@ static ssize_t ping6(struct in6_addr *addr, struct sockaddr_in6 dest = {AF_INET6, 0, 0, *addr, iface->ifindex}; struct icmp6_hdr echo = {.icmp6_type = ICMP6_ECHO_REQUEST}; struct iovec iov = {&echo, sizeof(echo)}; - - // Linux seems to not honor IPV6_PKTINFO on raw-sockets, so work around - setsockopt(ping_socket, SOL_SOCKET, SO_BINDTODEVICE, - iface->ifname, sizeof(iface->ifname)); return odhcpd_send(ping_socket, &dest, &iov, 1, iface); } |