Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Oct 2009 06:51:39 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197702 - head/etc/rc.d
Message-ID:  <200910020651.n926pdFA092242@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Fri Oct  2 06:51:39 2009
New Revision: 197702
URL: http://svn.freebsd.org/changeset/base/197702

Log:
  The net.inet.tcp.log_in_vain accepts 0, 1 or 2, not Y/N.

Modified:
  head/etc/rc.d/netoptions

Modified: head/etc/rc.d/netoptions
==============================================================================
--- head/etc/rc.d/netoptions	Fri Oct  2 06:19:34 2009	(r197701)
+++ head/etc/rc.d/netoptions	Fri Oct  2 06:51:39 2009	(r197702)
@@ -36,15 +36,18 @@ netoptions_start()
 
 netoptions_inet()
 {
-	if checkyesno log_in_vain; then
+	case ${log_in_vain} in
+	[12])
 		netoptions_init
 		echo -n " log_in_vain=${log_in_vain}"
-		${SYSCTL_W} net.inet.tcp.log_in_vain=1 >/dev/null
-		${SYSCTL_W} net.inet.udp.log_in_vain=1 >/dev/null
-	else
+		${SYSCTL_W} net.inet.tcp.log_in_vain=${log_in_vain} >/dev/null
+		${SYSCTL_W} net.inet.udp.log_in_vain=${log_in_vain} >/dev/null
+		;;
+	*)
 		${SYSCTL_W} net.inet.tcp.log_in_vain=0 >/dev/null
 		${SYSCTL_W} net.inet.udp.log_in_vain=0 >/dev/null
-	fi
+		;;
+	esac
 
 	if checkyesno tcp_extensions; then
 		${SYSCTL_W} net.inet.tcp.rfc1323=1 >/dev/null



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910020651.n926pdFA092242>