summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-07-13 23:01:19 +0200
committerSteven Barth <steven@midlink.org>2015-07-13 23:01:19 +0200
commit69c2f4c4d46437299c9a61a51393771436b89015 (patch)
tree2e944a2dce2340e427d04d173599c41e6db61ccf
parent97a27ba59a66c62551fe2de6502dc028a8481210 (diff)
downloadodhcpd-69c2f4c4d46437299c9a61a51393771436b89015.tar.gz
odhcpd: remove old workaround
-rw-r--r--src/odhcpd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/odhcpd.c b/src/odhcpd.c
index 9374052..56f4498 100644
--- a/src/odhcpd.c
+++ b/src/odhcpd.c
@@ -174,12 +174,6 @@ ssize_t odhcpd_send(int socket, struct sockaddr_in6 *dest,
|| IN6_IS_ADDR_MC_LINKLOCAL(&dest->sin6_addr))
dest->sin6_scope_id = iface->ifindex;
- // IPV6_PKTINFO doesn't really work for IPv6-raw sockets (bug?)
- if (dest->sin6_port == 0) {
- msg.msg_control = NULL;
- msg.msg_controllen = 0;
- }
-
char ipbuf[INET6_ADDRSTRLEN];
inet_ntop(AF_INET6, &dest->sin6_addr, ipbuf, sizeof(ipbuf));