mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
The change r192913 has added dependency on IP_RECVDSTADDR being
set for RPC UDP sockets. Mountd uses internal libc fuctions directly and bypasses generic socket initialization completely, so we need to set IP_RECVDSTADDR here to match the libc behavior.
This commit is contained in:
parent
d0148d1d0e
commit
4b119b6669
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193674
@ -568,6 +568,13 @@ create_service(struct netconfig *nconf)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (si.si_socktype == SOCK_DGRAM &&
|
||||
setsockopt(fd, IPPROTO_IP, IP_RECVDSTADDR, &one,
|
||||
sizeof one) < 0) {
|
||||
syslog(LOG_ERR,
|
||||
"can't disable v4-in-v6 on IPv6 socket");
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
case AF_INET6:
|
||||
if (inet_pton(AF_INET6, hosts[nhostsbak],
|
||||
|
Loading…
Reference in New Issue
Block a user