summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2009-06-18 17:10:43 +0000
committerkan <kan@FreeBSD.org>2009-06-18 17:10:43 +0000
commitee4de3e44a17a3ff08159350eea8f7c94dd1e5d7 (patch)
tree2a0f0b7ee0f67cd05c309fb30ec86d6fda69018f /usr.sbin/mountd
parent1df38023872009fd9556c189e7da834c1d250b34 (diff)
downloadFreeBSD-src-ee4de3e44a17a3ff08159350eea8f7c94dd1e5d7.zip
FreeBSD-src-ee4de3e44a17a3ff08159350eea8f7c94dd1e5d7.tar.gz
Re-do r192913 in less intrusive way. Only do IP_RECVDSTADDR/IP_SENDSRCADDR
dace for UPDv4 sockets bound to INADDR_ANY. Move the code to set IP_RECVDSTADDR/IP_SENDSRCADDR into svc_dg.c, so that both TLI and non-TLI users will be using it. Back out my previous commit to mountd. Turns out the problem was affecting more than one binary so it needs to me addressed in generic rpc code in libc in order to fix them all. Reported by: lstewart Tested by: lstewart
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 0c19a2b..6977b93 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -568,13 +568,6 @@ 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],
OpenPOWER on IntegriCloud