diff options
author | kan <kan@FreeBSD.org> | 2009-06-18 17:10:43 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2009-06-18 17:10:43 +0000 |
commit | ee4de3e44a17a3ff08159350eea8f7c94dd1e5d7 (patch) | |
tree | 2a0f0b7ee0f67cd05c309fb30ec86d6fda69018f /lib/libc/rpc/svc_generic.c | |
parent | 1df38023872009fd9556c189e7da834c1d250b34 (diff) | |
download | FreeBSD-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 'lib/libc/rpc/svc_generic.c')
-rw-r--r-- | lib/libc/rpc/svc_generic.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libc/rpc/svc_generic.c b/lib/libc/rpc/svc_generic.c index 9b50b44..7f6cfb8 100644 --- a/lib/libc/rpc/svc_generic.c +++ b/lib/libc/rpc/svc_generic.c @@ -199,7 +199,6 @@ svc_tli_create(fd, nconf, bindaddr, sendsz, recvsz) struct __rpc_sockinfo si; struct sockaddr_storage ss; socklen_t slen; - static const int true_value = 1; if (fd == RPC_ANYFD) { if (nconf == NULL) { @@ -226,14 +225,6 @@ svc_tli_create(fd, nconf, bindaddr, sendsz, recvsz) } } - if (si.si_af == AF_INET && si.si_socktype == SOCK_DGRAM) { - if (_setsockopt(fd, IPPROTO_IP, IP_RECVDSTADDR, - &true_value, sizeof(true_value))) { - warnx("svc_tli_create: cannot set IP_RECVDSTADDR"); - return (NULL); - } - } - /* * If the fd is unbound, try to bind it. */ |