1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)tcp_timer.c 8.2 (Berkeley) 5/24/95 |
34 * $Id: tcp_timer.c,v 1.28 1998/04/24 09:25:35 dg Exp $ |
35 */ 36 37#include "opt_compat.h" 38#include "opt_tcpdebug.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 28 unchanged lines hidden (view full) --- 71SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPIDLE, keepidle, 72 CTLFLAG_RW, &tcp_keepidle , 0, ""); 73 74static int tcp_keepintvl = TCPTV_KEEPINTVL; 75SYSCTL_INT(_net_inet_tcp, TCPCTL_KEEPINTVL, keepintvl, 76 CTLFLAG_RW, &tcp_keepintvl , 0, ""); 77 78static int always_keepalive = 0; |
79SYSCTL_INT(_net_inet_tcp, OID_AUTO, always_keepalive, CTLFLAG_RW, 80 &always_keepalive , 0, "Assume SO_KEEPALIVE on all TCP connections"); |
81 82static int tcp_keepcnt = TCPTV_KEEPCNT; 83 /* max idle probes */ 84static int tcp_maxpersistidle = TCPTV_KEEP_IDLE; 85 /* max idle time in persist */ 86int tcp_maxidle; 87 88/* --- 283 unchanged lines hidden --- |