Deleted Added
full compact
tcp_timewait.c (12635) tcp_timewait.c (12881)
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.22 1995/11/14 20:34:41 phk Exp $
34 * $Id: tcp_subr.c,v 1.23 1995/12/05 17:46:43 wollman Exp $
35 */
36
37#include <sys/param.h>
38#include <sys/proc.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/sysctl.h>
42#include <sys/malloc.h>

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

439 else
440 tp->t_softerror = error;
441 wakeup((caddr_t) &so->so_timeo);
442 sorwakeup(so);
443 sowwakeup(so);
444}
445
446void
35 */
36
37#include <sys/param.h>
38#include <sys/proc.h>
39#include <sys/systm.h>
40#include <sys/kernel.h>
41#include <sys/sysctl.h>
42#include <sys/malloc.h>

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

439 else
440 tp->t_softerror = error;
441 wakeup((caddr_t) &so->so_timeo);
442 sorwakeup(so);
443 sowwakeup(so);
444}
445
446void
447tcp_ctlinput(cmd, sa, ip)
447tcp_ctlinput(cmd, sa, vip)
448 int cmd;
449 struct sockaddr *sa;
448 int cmd;
449 struct sockaddr *sa;
450 register struct ip *ip;
450 void *vip;
451{
451{
452 register struct ip *ip = vip;
452 register struct tcphdr *th;
453 void (*notify) __P((struct inpcb *, int)) = tcp_notify;
454
455 if (cmd == PRC_QUENCH)
456 notify = tcp_quench;
457#if 1
458 else if (cmd == PRC_MSGSIZE)
459 notify = tcp_mtudisc;

--- 145 unchanged lines hidden ---
453 register struct tcphdr *th;
454 void (*notify) __P((struct inpcb *, int)) = tcp_notify;
455
456 if (cmd == PRC_QUENCH)
457 notify = tcp_quench;
458#if 1
459 else if (cmd == PRC_MSGSIZE)
460 notify = tcp_mtudisc;

--- 145 unchanged lines hidden ---