Deleted Added
full compact
tcp_usrreq.c (46155) tcp_usrreq.c (46381)
1/*
2 * Copyright (c) 1982, 1986, 1988, 1993
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 * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94
1/*
2 * Copyright (c) 1982, 1986, 1988, 1993
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 * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94
34 * $Id: tcp_usrreq.c,v 1.41 1999/04/24 18:25:35 ache Exp $
34 * $Id: tcp_usrreq.c,v 1.42 1999/04/28 11:37:50 phk Exp $
35 */
36
37#include "opt_tcpdebug.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>
42#include <sys/sysctl.h>

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

674}
675
676/*
677 * tcp_sendspace and tcp_recvspace are the default send and receive window
678 * sizes, respectively. These are obsolescent (this information should
679 * be set by the route).
680 */
681u_long tcp_sendspace = 1024*16;
35 */
36
37#include "opt_tcpdebug.h"
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>
42#include <sys/sysctl.h>

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

674}
675
676/*
677 * tcp_sendspace and tcp_recvspace are the default send and receive window
678 * sizes, respectively. These are obsolescent (this information should
679 * be set by the route).
680 */
681u_long tcp_sendspace = 1024*16;
682SYSCTL_INT(_net_inet_tcp, TCPCTL_SENDSPACE, sendspace,
683 CTLFLAG_RW, &tcp_sendspace , 0, "");
682SYSCTL_INT(_net_inet_tcp, TCPCTL_SENDSPACE, sendspace, CTLFLAG_RW,
683 &tcp_sendspace , 0, "Maximum outgoing TCP datagram size");
684u_long tcp_recvspace = 1024*16;
684u_long tcp_recvspace = 1024*16;
685SYSCTL_INT(_net_inet_tcp, TCPCTL_RECVSPACE, recvspace,
686 CTLFLAG_RW, &tcp_recvspace , 0, "");
685SYSCTL_INT(_net_inet_tcp, TCPCTL_RECVSPACE, recvspace, CTLFLAG_RW,
686 &tcp_recvspace , 0, "Maximum incoming TCP datagram size");
687
688/*
689 * Attach TCP protocol to socket, allocating
690 * internet protocol control block, tcp control block,
691 * bufer space, and entering LISTEN state if to accept connections.
692 */
693static int
694tcp_attach(so, p)

--- 102 unchanged lines hidden ---
687
688/*
689 * Attach TCP protocol to socket, allocating
690 * internet protocol control block, tcp control block,
691 * bufer space, and entering LISTEN state if to accept connections.
692 */
693static int
694tcp_attach(so, p)

--- 102 unchanged lines hidden ---