From a51ab5ce3b2e12b0c973a25ec4dfde5ee818481e Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Thu, 11 May 1995 19:08:37 +0000 Subject: [PATCH] Reviewed by: wollman Add a knob to make it easy to turn off RFC 1323 and RFC 1644 options. --- etc/netstart | 12 +++++++++++- etc/sysconfig | 10 +++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/etc/netstart b/etc/netstart index 7bbb70aa4e8d..f86cbfc7b242 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 bb8e536fb202..96903f29a057 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: