s/IPV6_BINDV6ONLY/IPV6_V6ONLY/ to follow changes made yesterday.

This commit is contained in:
itojun 2001-10-16 01:51:26 +00:00
parent 7dfbd02819
commit c878544aa7
3 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mountd.c,v 1.77 2001/04/24 15:04:27 fvdl Exp $ */
/* $NetBSD: mountd.c,v 1.78 2001/10/16 01:51:26 itojun Exp $ */
/*
* Copyright (c) 1989, 1993
@ -51,7 +51,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
#else
__RCSID("$NetBSD: mountd.c,v 1.77 2001/04/24 15:04:27 fvdl Exp $");
__RCSID("$NetBSD: mountd.c,v 1.78 2001/10/16 01:51:26 itojun Exp $");
#endif
#endif /* not lint */
@ -349,12 +349,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);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfsd.c,v 1.35 2001/01/16 02:50:32 cgd Exp $ */
/* $NetBSD: nfsd.c,v 1.36 2001/10/16 01:51:27 itojun Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
#if 0
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
#else
__RCSID("$NetBSD: nfsd.c,v 1.35 2001/01/16 02:50:32 cgd Exp $");
__RCSID("$NetBSD: nfsd.c,v 1.36 2001/10/16 01:51:27 itojun Exp $");
#endif
#endif /* not lint */
@ -503,7 +503,7 @@ main(argc, argv)
syslog(LOG_ERR, "can't create udp socket");
exit(1);
}
if (setsockopt(sock, IPPROTO_IPV6, IPV6_BINDV6ONLY,
if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY,
&on, sizeof on) < 0) {
syslog(LOG_ERR, "can't set v6-only binding for udp6 "
"socket: %m");
@ -609,7 +609,7 @@ main(argc, argv)
if (setsockopt(tcp6sock,
SOL_SOCKET, SO_REUSEADDR, (char *)&on, sizeof(on)) < 0)
syslog(LOG_ERR, "setsockopt SO_REUSEADDR: %m");
if (setsockopt(tcp6sock, IPPROTO_IPV6, IPV6_BINDV6ONLY,
if (setsockopt(tcp6sock, IPPROTO_IPV6, IPV6_V6ONLY,
&on, sizeof on) < 0) {
syslog(LOG_ERR, "can't set v6-only binding for tcp6 "
"socket: %m");

View File

@ -1,4 +1,4 @@
/* $NetBSD: ypserv.c,v 1.14 2001/02/19 23:22:52 cgd Exp $ */
/* $NetBSD: ypserv.c,v 1.15 2001/10/16 01:51:27 itojun Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: ypserv.c,v 1.14 2001/02/19 23:22:52 cgd Exp $");
__RCSID("$NetBSD: ypserv.c,v 1.15 2001/10/16 01:51:27 itojun Exp $");
#endif
#include <sys/types.h>
@ -333,12 +333,12 @@ main(argc, argv)
* v4-in-v6 to confuse things.
*/
if (udp6sock != -1 && setsockopt(udp6sock, IPPROTO_IPV6,
IPV6_BINDV6ONLY, &one, sizeof(one)) < 0) {
IPV6_V6ONLY, &one, sizeof(one)) < 0) {
_msgout(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) {
_msgout(LOG_ERR, "can't disable v4-in-v6 on TCP socket");
exit(1);
}