o Update rc.network to reflect the recent change of default in the

kernel TCP timer code: rather than checking for tcp_keepalive being
  set to "YES", check for "NO" and turn off keepalives if the variable
  is set in that manner.

o Note: eventually, it would make sense to remove this variable from
  rc.conf management, and instead rely on sysctl.conf.  In fact, this
  is probably true of a number of rc.conf variables whose sole aim
  is to drive the setting of sysctls at boot time.
This commit is contained in:
rwatson 2001-12-07 17:03:14 +00:00
parent 201aafdb0d
commit 0072c5d9c5
7 changed files with 21 additions and 21 deletions

View File

@ -456,9 +456,9 @@ network_pass1() {
esac
case ${tcp_keepalive} in
[Yy][Ee][Ss])
echo -n ' TCP keepalive=YES'
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
[Nn][Oo])
echo -n ' TCP keepalive=NO'
sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null
;;
esac

View File

@ -456,9 +456,9 @@ network_pass1() {
esac
case ${tcp_keepalive} in
[Yy][Ee][Ss])
echo -n ' TCP keepalive=YES'
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
[Nn][Oo])
echo -n ' TCP keepalive=NO'
sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null
;;
esac

View File

@ -456,9 +456,9 @@ network_pass1() {
esac
case ${tcp_keepalive} in
[Yy][Ee][Ss])
echo -n ' TCP keepalive=YES'
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
[Nn][Oo])
echo -n ' TCP keepalive=NO'
sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null
;;
esac

View File

@ -456,9 +456,9 @@ network_pass1() {
esac
case ${tcp_keepalive} in
[Yy][Ee][Ss])
echo -n ' TCP keepalive=YES'
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
[Nn][Oo])
echo -n ' TCP keepalive=NO'
sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null
;;
esac

View File

@ -456,9 +456,9 @@ network_pass1() {
esac
case ${tcp_keepalive} in
[Yy][Ee][Ss])
echo -n ' TCP keepalive=YES'
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
[Nn][Oo])
echo -n ' TCP keepalive=NO'
sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null
;;
esac

View File

@ -456,9 +456,9 @@ network_pass1() {
esac
case ${tcp_keepalive} in
[Yy][Ee][Ss])
echo -n ' TCP keepalive=YES'
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
[Nn][Oo])
echo -n ' TCP keepalive=NO'
sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null
;;
esac

View File

@ -456,9 +456,9 @@ network_pass1() {
esac
case ${tcp_keepalive} in
[Yy][Ee][Ss])
echo -n ' TCP keepalive=YES'
sysctl -w net.inet.tcp.always_keepalive=1 >/dev/null
[Nn][Oo])
echo -n ' TCP keepalive=NO'
sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null
;;
esac