tcp_reass.c (126220) | tcp_reass.c (126239) |
---|---|
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 * $FreeBSD: head/sys/netinet/tcp_reass.c 126220 2004-02-25 08:53:17Z hsu $ | 34 * $FreeBSD: head/sys/netinet/tcp_reass.c 126239 2004-02-25 19:55:29Z mlaier $ |
35 */ 36 37#include "opt_ipfw.h" /* for ipfw_fwd */ 38#include "opt_inet.h" 39#include "opt_inet6.h" 40#include "opt_ipsec.h" 41#include "opt_mac.h" 42#include "opt_tcpdebug.h" --- 400 unchanged lines hidden (view full) --- 443 * The size of tcp_saveipgen must be the size of the max ip header, 444 * now IPv6. 445 */ 446 u_char tcp_saveipgen[40]; 447 struct tcphdr tcp_savetcp; 448 short ostate = 0; 449#endif 450 | 35 */ 36 37#include "opt_ipfw.h" /* for ipfw_fwd */ 38#include "opt_inet.h" 39#include "opt_inet6.h" 40#include "opt_ipsec.h" 41#include "opt_mac.h" 42#include "opt_tcpdebug.h" --- 400 unchanged lines hidden (view full) --- 443 * The size of tcp_saveipgen must be the size of the max ip header, 444 * now IPv6. 445 */ 446 u_char tcp_saveipgen[40]; 447 struct tcphdr tcp_savetcp; 448 short ostate = 0; 449#endif 450 |
451 /* Grab info from MT_TAG mbufs prepended to the chain. */ 452 for (;m && m->m_type == MT_TAG; m = m->m_next) { 453 if (m->_m_tag_id == PACKET_TAG_IPFORWARD) 454 next_hop = (struct sockaddr_in *)m->m_hdr.mh_data; 455 } | 451 /* Grab info from PACKET_TAG_IPFORWARD tag prepended to the chain. */ 452 next_hop = ip_claim_next_hop(m); |
456#ifdef INET6 457 isipv6 = (mtod(m, struct ip *)->ip_v == 6) ? 1 : 0; 458#endif 459 bzero(&tao, sizeof(tao)); 460 bzero((char *)&to, sizeof(to)); 461 462 tcpstat.tcps_rcvtotal++; 463 --- 2764 unchanged lines hidden --- | 453#ifdef INET6 454 isipv6 = (mtod(m, struct ip *)->ip_v == 6) ? 1 : 0; 455#endif 456 bzero(&tao, sizeof(tao)); 457 bzero((char *)&to, sizeof(to)); 458 459 tcpstat.tcps_rcvtotal++; 460 --- 2764 unchanged lines hidden --- |