From cef8c0135112d4b52b152f3def9224e88229fc89 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 28 Mar 1999 20:36:03 +0000 Subject: Add two features: log_in_vain: log_in_vain turns on logging for packets to ports for which there is no listener. rc.sysctl: A generic way to set sysctl values. It reads /etc/syslog.conf and sets values based on that. No /etc/syslog.conf has been checked in yet, and I've not added this to the makefile yet until I get more feedback. Reviewed by: -current, -hackers and bde especially --- etc/network.subr | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'etc/network.subr') diff --git a/etc/network.subr b/etc/network.subr index 12300c0..e913c88 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.40 1999/03/11 16:17:24 jfitz Exp $ +# $Id: rc.network,v 1.41 1999/03/24 10:28:49 brian Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -151,6 +151,12 @@ network_pass1() { sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 fi + if [ -n "$log_in_vain" -a "x$log_in_vain" != "xNO" ] ; then + echo -n ' log_in_vain=YES' + sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null 2>&1 + sysctl -w net.inet.udp.log_in_vain=1 >/dev/null 2>&1 + fi + if [ X"$icmp_bmcastecho" = X"YES" ]; then echo -n ' broadcast ping responses=YES' sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null 2>&1 -- cgit v1.1