tcp_reass.c (30813) | tcp_reass.c (31016) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994, 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_input.c 8.12 (Berkeley) 5/24/95 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1994, 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_input.c 8.12 (Berkeley) 5/24/95 |
34 * $Id: tcp_input.c,v 1.63 1997/10/02 02:10:40 davidg Exp $ | 34 * $Id: tcp_input.c,v 1.64 1997/10/28 15:58:52 bde Exp $ |
35 */ 36 37#include "opt_tcpdebug.h" 38 39#ifndef TUBA_INCLUDE 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 575 unchanged lines hidden (view full) --- 618 * tp->iss, and send a segment: 619 * <SEQ=ISS><ACK=RCV_NXT><CTL=SYN,ACK> 620 * Also initialize tp->snd_nxt to tp->iss+1 and tp->snd_una to tp->iss. 621 * Fill in remote peer address fields if not previously specified. 622 * Enter SYN_RECEIVED state, and process any other fields of this 623 * segment in this state. 624 */ 625 case TCPS_LISTEN: { | 35 */ 36 37#include "opt_tcpdebug.h" 38 39#ifndef TUBA_INCLUDE 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 575 unchanged lines hidden (view full) --- 618 * tp->iss, and send a segment: 619 * <SEQ=ISS><ACK=RCV_NXT><CTL=SYN,ACK> 620 * Also initialize tp->snd_nxt to tp->iss+1 and tp->snd_una to tp->iss. 621 * Fill in remote peer address fields if not previously specified. 622 * Enter SYN_RECEIVED state, and process any other fields of this 623 * segment in this state. 624 */ 625 case TCPS_LISTEN: { |
626 struct mbuf *am; | |
627 register struct sockaddr_in *sin; 628 629 if (tiflags & TH_RST) 630 goto drop; 631 if (tiflags & TH_ACK) 632 goto dropwithreset; 633 if ((tiflags & TH_SYN) == 0) 634 goto drop; --- 1495 unchanged lines hidden --- | 626 register struct sockaddr_in *sin; 627 628 if (tiflags & TH_RST) 629 goto drop; 630 if (tiflags & TH_ACK) 631 goto dropwithreset; 632 if ((tiflags & TH_SYN) == 0) 633 goto drop; --- 1495 unchanged lines hidden --- |