Since semantic of IPV6_PKTINFO was changed in RFC3542, we need to

use IPV6_RECVPKTINFO instead.

Reported by:	someone (I had removed the mail wrongly, sorry)
This commit is contained in:
ume 2003-10-26 06:11:31 +00:00
parent edafc1a965
commit 2472b3136c

View File

@ -1290,7 +1290,7 @@ setsockopt(fd, SOL_SOCKET, opt, (char *)&on, sizeof (on))
if ((sep->se_family == AF_INET6) &&
(strcmp(sep->se_proto, "udp") == 0) &&
(sep->se_accept == 0) &&
(setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_PKTINFO,
(setsockopt(sep->se_fd, IPPROTO_IPV6, IPV6_RECVPKTINFO,
(char *)&on, sizeof (on)) < 0))
syslog(LOG_ERR, "setsockopt (IPV6_RECVPKTINFO): %m");
if (sep->se_family == AF_INET6) {