summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-07-22 15:22:53 +0000
committerume <ume@FreeBSD.org>2002-07-22 15:22:53 +0000
commit9c2c51a1e61030bfe633fa01ea19069f3fd0091b (patch)
treecc39562b6ea40c9f3ec3aab6d5fe9295ff53b4b5 /usr.sbin/mountd
parent881112a66cdce7db30df7845ba02b180e6725cd0 (diff)
downloadFreeBSD-src-9c2c51a1e61030bfe633fa01ea19069f3fd0091b.zip
FreeBSD-src-9c2c51a1e61030bfe633fa01ea19069f3fd0091b.tar.gz
use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 2798915..49d5454 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -362,12 +362,12 @@ main(argc, argv)
* by default on NFS sockets too.
*/
if (udp6sock != -1 && setsockopt(udp6sock, IPPROTO_IPV6,
- IPV6_BINDV6ONLY, &one, sizeof one) < 0){
+ IPV6_V6ONLY, &one, sizeof one) < 0){
syslog(LOG_ERR, "can't disable v4-in-v6 on UDP socket");
exit(1);
}
if (tcp6sock != -1 && setsockopt(tcp6sock, IPPROTO_IPV6,
- IPV6_BINDV6ONLY, &one, sizeof one) < 0){
+ IPV6_V6ONLY, &one, sizeof one) < 0){
syslog(LOG_ERR, "can't disable v4-in-v6 on UDP socket");
exit(1);
}
OpenPOWER on IntegriCloud