summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-11 19:08:37 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-11 19:08:37 +0000
commite3b120088fc0412693845ad0df34cf1d3551744d (patch)
treea131388113315370552d956fc65fdfc3e25fb2ca
parenta0a1fbecf5993c46ab6e139646c02906890b3a57 (diff)
downloadFreeBSD-src-e3b120088fc0412693845ad0df34cf1d3551744d.zip
FreeBSD-src-e3b120088fc0412693845ad0df34cf1d3551744d.tar.gz
Reviewed by: wollman
Add a knob to make it easy to turn off RFC 1323 and RFC 1644 options.
-rwxr-xr-xetc/netstart12
-rw-r--r--etc/sysconfig10
2 files changed, 20 insertions, 2 deletions
diff --git a/etc/netstart b/etc/netstart
index 7bbb70a..f86cbfc 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: netstart,v 1.28 1995/04/12 16:58:06 ache Exp $
+# $Id: netstart,v 1.29 1995/04/24 23:52:15 rgrimes Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# If there is a global system configuration file, suck it in.
@@ -18,6 +18,16 @@ if [ -n "$defaultdomainname" -a "x$defaultdomainname" != "xNO" ] ; then
domainname $defaultdomainname
fi
+#
+# XXX This is known to cause an error if /usr is nfs mounted since it
+# will not be avaliable until after the network is up :-(. Once the
+# relocation of sysctl to /sbin is done that problem will go away.
+#
+if [ -n "$tcp_extensions" -a "x$tcp_extensions" = "xNO" ] ; then
+ sysctl -nw net.inet.tcp.rfc1323=0
+ sysctl -nw net.inet.tcp.rfc1644=0
+fi
+
# Set up all the network interfaces, calling startup scripts if needed
for ifn in ${network_interfaces}; do
if [ -e /etc/start_if.${ifn} ]; then
diff --git a/etc/sysconfig b/etc/sysconfig
index bb8e536..96903f2 100644
--- a/etc/sysconfig
+++ b/etc/sysconfig
@@ -4,7 +4,7 @@
# This is sysconfig - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
-# $Id: sysconfig,v 1.10 1995/04/11 01:22:24 rgrimes Exp $
+# $Id: sysconfig,v 1.11 1995/04/24 23:52:16 rgrimes Exp $
######################### Start Of Syscons Section #######################
@@ -63,6 +63,14 @@ hostname=myname.my.domain
# Set to the NIS domainname of your host, or NO if none
defaultdomainname=NO
+#
+# Some broken implementations can't handle the RFC 1323 and RFC 1644
+# TCP options. If TCP connections randomly hang, try disabling this,
+# and bug the vendor of the losing equipment.
+#
+tcp_extensions=YES
+
+# XXX This is known to cause an error if /usr is nfs mounted since it
# Set to the list of network devices on this host. You must have an
# ifconfig_${network_interface} line for each interface listed here.
# for example:
OpenPOWER on IntegriCloud