aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2009-10-02 06:51:39 +0000
committerHiroki Sato <hrs@FreeBSD.org>2009-10-02 06:51:39 +0000
commitb5a70c98b2d1c455c30a96d1c67e182f15acf7dd (patch)
tree72b3eac62eedceb2df19227bee094bf47118a6cc /etc
parentccbc06d893adcccddaa4089aa42c3adec9b51a23 (diff)
downloadsrc-b5a70c98b2d1c455c30a96d1c67e182f15acf7dd.tar.gz
src-b5a70c98b2d1c455c30a96d1c67e182f15acf7dd.zip
The net.inet.tcp.log_in_vain accepts 0, 1 or 2, not Y/N.
Notes
Notes: svn path=/head/; revision=197702
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/netoptions13
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index c30563d213f4..f2012c5f3e89 100755
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -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