Deleted Added
full compact
tcp_timewait.c (46155) tcp_timewait.c (46381)
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_subr.c 8.2 (Berkeley) 5/24/95
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_subr.c 8.2 (Berkeley) 5/24/95
34 * $Id: tcp_subr.c,v 1.52 1999/02/04 03:27:43 msmith Exp $
34 * $Id: tcp_subr.c,v 1.53 1999/04/28 11:37:49 phk 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>

--- 22 unchanged lines hidden (view full) ---

65#include <netinet/tcp_timer.h>
66#include <netinet/tcp_var.h>
67#include <netinet/tcpip.h>
68#ifdef TCPDEBUG
69#include <netinet/tcp_debug.h>
70#endif
71
72int tcp_mssdflt = TCP_MSS;
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>

--- 22 unchanged lines hidden (view full) ---

65#include <netinet/tcp_timer.h>
66#include <netinet/tcp_var.h>
67#include <netinet/tcpip.h>
68#ifdef TCPDEBUG
69#include <netinet/tcp_debug.h>
70#endif
71
72int tcp_mssdflt = TCP_MSS;
73SYSCTL_INT(_net_inet_tcp, TCPCTL_MSSDFLT, mssdflt,
74 CTLFLAG_RW, &tcp_mssdflt , 0, "");
73SYSCTL_INT(_net_inet_tcp, TCPCTL_MSSDFLT, mssdflt, CTLFLAG_RW,
74 &tcp_mssdflt , 0, "Default TCP Maximum Segment Size");
75
76static int tcp_rttdflt = TCPTV_SRTTDFLT / PR_SLOWHZ;
75
76static int tcp_rttdflt = TCPTV_SRTTDFLT / PR_SLOWHZ;
77SYSCTL_INT(_net_inet_tcp, TCPCTL_RTTDFLT, rttdflt,
78 CTLFLAG_RW, &tcp_rttdflt , 0, "");
77SYSCTL_INT(_net_inet_tcp, TCPCTL_RTTDFLT, rttdflt, CTLFLAG_RW,
78 &tcp_rttdflt , 0, "Default maximum TCP Round Trip Time");
79
80static int tcp_do_rfc1323 = 1;
79
80static int tcp_do_rfc1323 = 1;
81SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323,
82 CTLFLAG_RW, &tcp_do_rfc1323 , 0, "");
81SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323, CTLFLAG_RW,
82 &tcp_do_rfc1323 , 0, "Enable rfc1323 (high performance TCP) extensions");
83
84static int tcp_do_rfc1644 = 0;
83
84static int tcp_do_rfc1644 = 0;
85SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1644, rfc1644,
86 CTLFLAG_RW, &tcp_do_rfc1644 , 0, "");
85SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1644, rfc1644, CTLFLAG_RW,
86 &tcp_do_rfc1644 , 0, "Enable rfc1644 (TTCP) extensions");
87
87
88SYSCTL_INT(_net_inet_tcp, OID_AUTO, pcbcount, CTLFLAG_RD, &tcbinfo.ipi_count,
89 0, "Number of active PCBs");
88SYSCTL_INT(_net_inet_tcp, OID_AUTO, pcbcount, CTLFLAG_RD,
89 &tcbinfo.ipi_count, 0, "Number of active PCBs");
90
91static void tcp_cleartaocache __P((void));
92static void tcp_notify __P((struct inpcb *, int));
93
94/*
95 * Target size of TCP PCB hash tables. Must be a power of two.
96 *
97 * Note that this can be overridden by the kernel environment

--- 664 unchanged lines hidden ---
90
91static void tcp_cleartaocache __P((void));
92static void tcp_notify __P((struct inpcb *, int));
93
94/*
95 * Target size of TCP PCB hash tables. Must be a power of two.
96 *
97 * Note that this can be overridden by the kernel environment

--- 664 unchanged lines hidden ---