tcp_subr.c (237263) | tcp_subr.c (240233) |
---|---|
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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95 30 */ 31 32#include <sys/cdefs.h> | 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 --- 16 unchanged lines hidden (view full) --- 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/netinet/tcp_subr.c 237263 2012-06-19 07:34:13Z np $"); | 33__FBSDID("$FreeBSD: head/sys/netinet/tcp_subr.c 240233 2012-09-08 06:41:54Z glebius $"); |
34 35#include "opt_compat.h" 36#include "opt_inet.h" 37#include "opt_inet6.h" 38#include "opt_ipsec.h" 39#include "opt_tcpdebug.h" 40 41#include <sys/param.h> --- 497 unchanged lines hidden (view full) --- 539 } else { 540 /* 541 * reuse the mbuf. 542 * XXX MRT We inherrit the FIB, which is lucky. 543 */ 544 m_freem(m->m_next); 545 m->m_next = NULL; 546 m->m_data = (caddr_t)ipgen; | 34 35#include "opt_compat.h" 36#include "opt_inet.h" 37#include "opt_inet6.h" 38#include "opt_ipsec.h" 39#include "opt_tcpdebug.h" 40 41#include <sys/param.h> --- 497 unchanged lines hidden (view full) --- 539 } else { 540 /* 541 * reuse the mbuf. 542 * XXX MRT We inherrit the FIB, which is lucky. 543 */ 544 m_freem(m->m_next); 545 m->m_next = NULL; 546 m->m_data = (caddr_t)ipgen; |
547 m_addr_changed(m); | |
548 /* m_len is set later */ 549 tlen = 0; 550#define xchg(a,b,type) { type t; t=a; a=b; b=t; } 551#ifdef INET6 552 if (isipv6) { 553 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr); 554 nth = (struct tcphdr *)(ip6 + 1); 555 } else --- 1765 unchanged lines hidden --- | 547 /* m_len is set later */ 548 tlen = 0; 549#define xchg(a,b,type) { type t; t=a; a=b; b=t; } 550#ifdef INET6 551 if (isipv6) { 552 xchg(ip6->ip6_dst, ip6->ip6_src, struct in6_addr); 553 nth = (struct tcphdr *)(ip6 + 1); 554 } else --- 1765 unchanged lines hidden --- |