tcp.h (289276) | tcp.h (292309) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1993 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.h 8.1 (Berkeley) 6/10/93 | 1/*- 2 * Copyright (c) 1982, 1986, 1993 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.h 8.1 (Berkeley) 6/10/93 |
30 * $FreeBSD: head/sys/netinet/tcp.h 289276 2015-10-14 00:35:37Z hiren $ | 30 * $FreeBSD: head/sys/netinet/tcp.h 292309 2015-12-16 00:56:45Z rrs $ |
31 */ 32 33#ifndef _NETINET_TCP_H_ 34#define _NETINET_TCP_H_ 35 36#include <sys/cdefs.h> 37#include <sys/types.h> 38 --- 123 unchanged lines hidden (view full) --- 162#define TCP_INFO 32 /* retrieve tcp_info structure */ 163#define TCP_CONGESTION 64 /* get/set congestion control algorithm */ 164#define TCP_KEEPINIT 128 /* N, time to establish connection */ 165#define TCP_KEEPIDLE 256 /* L,N,X start keeplives after this period */ 166#define TCP_KEEPINTVL 512 /* L,N interval between keepalives */ 167#define TCP_KEEPCNT 1024 /* L,N number of keepalives before close */ 168#define TCP_PCAP_OUT 2048 /* number of output packets to keep */ 169#define TCP_PCAP_IN 4096 /* number of input packets to keep */ | 31 */ 32 33#ifndef _NETINET_TCP_H_ 34#define _NETINET_TCP_H_ 35 36#include <sys/cdefs.h> 37#include <sys/types.h> 38 --- 123 unchanged lines hidden (view full) --- 162#define TCP_INFO 32 /* retrieve tcp_info structure */ 163#define TCP_CONGESTION 64 /* get/set congestion control algorithm */ 164#define TCP_KEEPINIT 128 /* N, time to establish connection */ 165#define TCP_KEEPIDLE 256 /* L,N,X start keeplives after this period */ 166#define TCP_KEEPINTVL 512 /* L,N interval between keepalives */ 167#define TCP_KEEPCNT 1024 /* L,N number of keepalives before close */ 168#define TCP_PCAP_OUT 2048 /* number of output packets to keep */ 169#define TCP_PCAP_IN 4096 /* number of input packets to keep */ |
170 | 170#define TCP_FUNCTION_BLK 8192 /* Set the tcp function pointers to the specified stack */ |
171/* Start of reserved space for third-party user-settable options. */ 172#define TCP_VENDOR SO_VENDOR 173 174#define TCP_CA_NAME_MAX 16 /* max congestion control name length */ 175 176#define TCPI_OPT_TIMESTAMPS 0x01 177#define TCPI_OPT_SACK 0x02 178#define TCPI_OPT_WSCALE 0x04 --- 61 unchanged lines hidden (view full) --- 240 u_int32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ 241 u_int32_t tcpi_rcv_ooopack; /* Out-of-order packets */ 242 u_int32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ 243 244 /* Padding to grow without breaking ABI. */ 245 u_int32_t __tcpi_pad[26]; /* Padding. */ 246}; 247#endif | 171/* Start of reserved space for third-party user-settable options. */ 172#define TCP_VENDOR SO_VENDOR 173 174#define TCP_CA_NAME_MAX 16 /* max congestion control name length */ 175 176#define TCPI_OPT_TIMESTAMPS 0x01 177#define TCPI_OPT_SACK 0x02 178#define TCPI_OPT_WSCALE 0x04 --- 61 unchanged lines hidden (view full) --- 240 u_int32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ 241 u_int32_t tcpi_rcv_ooopack; /* Out-of-order packets */ 242 u_int32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ 243 244 /* Padding to grow without breaking ABI. */ 245 u_int32_t __tcpi_pad[26]; /* Padding. */ 246}; 247#endif |
248#define TCP_FUNCTION_NAME_LEN_MAX 32 |
|
248 | 249 |
250struct tcp_function_set { 251 char function_set_name[TCP_FUNCTION_NAME_LEN_MAX]; 252 uint32_t pcbcnt; 253}; 254 |
|
249#endif /* !_NETINET_TCP_H_ */ | 255#endif /* !_NETINET_TCP_H_ */ |