From e1194cb660eecfbba21be11b315ca464e21ed629 Mon Sep 17 00:00:00 2001 From: hrs Date: Fri, 2 Oct 2009 06:51:39 +0000 Subject: The net.inet.tcp.log_in_vain accepts 0, 1 or 2, not Y/N. --- etc/rc.d/netoptions | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index c30563d..f2012c5 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 -- cgit v1.1