diff options
author | pst <pst@FreeBSD.org> | 1996-09-13 23:51:44 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-09-13 23:51:44 +0000 |
commit | 460ca264a35697912ee6892edf43493bc7037685 (patch) | |
tree | 9a4c6784e5101afa9ee7f4c8c86e2355d2a13483 /sys/netinet/tcp_input.c | |
parent | aa0bf1e119360aec199b9032cc73b4ad92f3b4a1 (diff) | |
download | FreeBSD-src-460ca264a35697912ee6892edf43493bc7037685.zip FreeBSD-src-460ca264a35697912ee6892edf43493bc7037685.tar.gz |
Make the misnamed tcp initial keepalive timer value (which is really the
time, in seconds, that state for non-established TCP sessions stays about)
a sysctl modifyable variable.
[part 1 of two commits, I just realized I can't play with the indices as
I was typing this commit message.]
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 329cf25..75a33e6 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_input.c 8.12 (Berkeley) 5/24/95 - * $Id: tcp_input.c,v 1.46 1996/05/02 05:54:12 fenner Exp $ + * $Id: tcp_input.c,v 1.47 1996/09/13 18:47:03 pst Exp $ */ #ifndef TUBA_INCLUDE @@ -715,7 +715,7 @@ findpcb: tp->rcv_adv += min(tp->rcv_wnd, TCP_MAXWIN); tcpstat.tcps_connects++; soisconnected(so); - tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT; + tp->t_timer[TCPT_KEEP] = tcp_keepinit; dropsocket = 0; /* committed to socket */ tcpstat.tcps_accepts++; goto trimthenstep6; @@ -734,7 +734,7 @@ findpcb: */ tp->t_flags |= TF_ACKNOW; tp->t_state = TCPS_SYN_RECEIVED; - tp->t_timer[TCPT_KEEP] = TCPTV_KEEP_INIT; + tp->t_timer[TCPT_KEEP] = tcp_keepinit; dropsocket = 0; /* committed to socket */ tcpstat.tcps_accepts++; goto trimthenstep6; |