ndp: remove bindtodevice workaround
authorSteven Barth <steven@midlink.org>
Mon, 13 Jul 2015 21:08:19 +0000 (23:08 +0200)
committerSteven Barth <steven@midlink.org>
Mon, 13 Jul 2015 22:04:37 +0000 (00:04 +0200)
src/ndp.c

index 176eaecd268cf147dd6331a299da40467ea2fc84..b5bab27c1e2103d3d99014c2ec9a583a5252a8b4 100644 (file)
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -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);
 }