tcp_var.h (288301) | tcp_var.h (289276) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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_var.h 8.4 (Berkeley) 5/24/95 | 1/*- 2 * Copyright (c) 1982, 1986, 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 --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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_var.h 8.4 (Berkeley) 5/24/95 |
30 * $FreeBSD: head/sys/netinet/tcp_var.h 288301 2015-09-27 05:29:34Z melifaro $ | 30 * $FreeBSD: head/sys/netinet/tcp_var.h 289276 2015-10-14 00:35:37Z hiren $ |
31 */ 32 33#ifndef _NETINET_TCP_VAR_H_ 34#define _NETINET_TCP_VAR_H_ 35 36#include <netinet/tcp.h> 37 38#ifdef _KERNEL 39#include <net/vnet.h> | 31 */ 32 33#ifndef _NETINET_TCP_VAR_H_ 34#define _NETINET_TCP_VAR_H_ 35 36#include <netinet/tcp.h> 37 38#ifdef _KERNEL 39#include <net/vnet.h> |
40#include <sys/mbuf.h> |
|
40 41/* 42 * Kernel variables for tcp. 43 */ 44VNET_DECLARE(int, tcp_do_rfc1323); 45#define V_tcp_do_rfc1323 VNET(tcp_do_rfc1323) 46 47#endif /* _KERNEL */ --- 151 unchanged lines hidden (view full) --- 199 u_int t_tsomax; /* TSO total burst length limit in bytes */ 200 u_int t_tsomaxsegcount; /* TSO maximum segment count */ 201 u_int t_tsomaxsegsize; /* TSO maximum segment size in bytes */ 202 u_int t_pmtud_saved_maxopd; /* pre-blackhole MSS */ 203 u_int t_flags2; /* More tcpcb flags storage */ 204 205 uint32_t t_ispare[8]; /* 5 UTO, 3 TBD */ 206 void *t_pspare2[4]; /* 1 TCP_SIGNATURE, 3 TBD */ | 41 42/* 43 * Kernel variables for tcp. 44 */ 45VNET_DECLARE(int, tcp_do_rfc1323); 46#define V_tcp_do_rfc1323 VNET(tcp_do_rfc1323) 47 48#endif /* _KERNEL */ --- 151 unchanged lines hidden (view full) --- 200 u_int t_tsomax; /* TSO total burst length limit in bytes */ 201 u_int t_tsomaxsegcount; /* TSO maximum segment count */ 202 u_int t_tsomaxsegsize; /* TSO maximum segment size in bytes */ 203 u_int t_pmtud_saved_maxopd; /* pre-blackhole MSS */ 204 u_int t_flags2; /* More tcpcb flags storage */ 205 206 uint32_t t_ispare[8]; /* 5 UTO, 3 TBD */ 207 void *t_pspare2[4]; /* 1 TCP_SIGNATURE, 3 TBD */ |
207 uint64_t _pad[6]; /* 6 TBD (1-2 CC/RTT?) */ | 208#if defined(_KERNEL) && defined(TCPPCAP) 209 struct mbufq t_inpkts; /* List of saved input packets. */ 210 struct mbufq t_outpkts; /* List of saved output packets. */ 211#ifdef _LP64 212 uint64_t _pad[0]; /* all used! */ 213#else 214 uint64_t _pad[2]; /* 2 are available */ 215#endif /* _LP64 */ 216#else 217 uint64_t _pad[6]; 218#endif /* defined(_KERNEL) && defined(TCPPCAP) */ |
208}; 209 210/* 211 * Flags and utility macros for the t_flags field. 212 */ 213#define TF_ACKNOW 0x000001 /* ack peer immediately */ 214#define TF_DELACK 0x000002 /* ack, but try to delay it */ 215#define TF_NODELAY 0x000004 /* don't delay packets to coalesce */ --- 546 unchanged lines hidden --- | 219}; 220 221/* 222 * Flags and utility macros for the t_flags field. 223 */ 224#define TF_ACKNOW 0x000001 /* ack peer immediately */ 225#define TF_DELACK 0x000002 /* ack, but try to delay it */ 226#define TF_NODELAY 0x000004 /* don't delay packets to coalesce */ --- 546 unchanged lines hidden --- |