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 * $FreeBSD: head/sys/netinet/tcp_reass.c 55009 1999-12-22 19:13:38Z shin $ |
35 */ 36 37#include "opt_ipfw.h" /* for ipfw_fwd */ 38#include "opt_tcpdebug.h" 39#include "opt_tcp_input.h" 40 41#include <sys/param.h> 42#include <sys/systm.h> --- 225 unchanged lines hidden (view full) --- 268#undef GETTCP 269} 270 271/* 272 * TCP input routine, follows pages 65-76 of the 273 * protocol specification dated September, 1981 very closely. 274 */ 275void |
276tcp_input(m, off0, proto) |
277 register struct mbuf *m; |
278 int off0, proto; |
279{ |
280 int iphlen = off0; |
281 register struct tcpiphdr *ti; 282 register struct inpcb *inp; 283 u_char *optp = NULL; 284 int optlen = 0; 285 int len, tlen, off; 286 register struct tcpcb *tp = 0; 287 register int tiflags; 288 struct socket *so = 0; --- 2064 unchanged lines hidden --- |