Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
#define TCPOLEN_SACK 8 /* 2*sizeof(tcp_seq) */ | #define TCPOLEN_SACK 8 /* 2*sizeof(tcp_seq) */ | ||||
#define TCPOPT_TIMESTAMP 8 | #define TCPOPT_TIMESTAMP 8 | ||||
#define TCPOLEN_TIMESTAMP 10 | #define TCPOLEN_TIMESTAMP 10 | ||||
#define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */ | #define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */ | ||||
#define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ | #define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ | ||||
#define TCPOLEN_SIGNATURE 18 | #define TCPOLEN_SIGNATURE 18 | ||||
#define TCPOPT_FAST_OPEN 34 | #define TCPOPT_FAST_OPEN 34 | ||||
#define TCPOLEN_FAST_OPEN_EMPTY 2 | #define TCPOLEN_FAST_OPEN_EMPTY 2 | ||||
#define TCPOPT_ACCECN0 0xAC | |||||
#define TCPOPT_ACCECN1 0XAE | |||||
#define TCPOLEN_ACCECN_EMPTY 2 | |||||
#define TCPOLEN_ACCECN_COUNTER 3 | |||||
#define MAX_TCPOPTLEN 40 /* Absolute maximum TCP options len */ | #define MAX_TCPOPTLEN 40 /* Absolute maximum TCP options len */ | ||||
/* Miscellaneous constants */ | /* Miscellaneous constants */ | ||||
#define MAX_SACK_BLKS 6 /* Max # SACK blocks stored at receiver side */ | #define MAX_SACK_BLKS 6 /* Max # SACK blocks stored at receiver side */ | ||||
#define TCP_MAX_SACK 4 /* MAX # SACKs sent in any segment */ | #define TCP_MAX_SACK 4 /* MAX # SACKs sent in any segment */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 272 Lines • ▼ Show 20 Lines | struct tcp_info { | ||||
u_int32_t tcpi_toe_tid; /* HWTID for TOE endpoints */ | u_int32_t tcpi_toe_tid; /* HWTID for TOE endpoints */ | ||||
u_int32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ | u_int32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ | ||||
u_int32_t tcpi_rcv_ooopack; /* Out-of-order packets */ | u_int32_t tcpi_rcv_ooopack; /* Out-of-order packets */ | ||||
u_int32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ | u_int32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ | ||||
/* Accurate ECN counters. */ | /* Accurate ECN counters. */ | ||||
u_int32_t tcpi_delivered_ce; | u_int32_t tcpi_delivered_ce; | ||||
u_int32_t tcpi_received_ce; /* # of CE marks received */ | u_int32_t tcpi_received_ce; /* # of CE marks received */ | ||||
u_int32_t __tcpi_delivered_e1_bytes; | u_int32_t tcpi_delivered_e1_bytes; | ||||
u_int32_t __tcpi_delivered_e0_bytes; | u_int32_t tcpi_delivered_e0_bytes; | ||||
u_int32_t __tcpi_delivered_ce_bytes; | u_int32_t tcpi_delivered_ce_bytes; | ||||
u_int32_t __tcpi_received_e1_bytes; | u_int32_t tcpi_received_e1_bytes; | ||||
u_int32_t __tcpi_received_e0_bytes; | u_int32_t tcpi_received_e0_bytes; | ||||
u_int32_t __tcpi_received_ce_bytes; | u_int32_t tcpi_received_ce_bytes; | ||||
/* Padding to grow without breaking ABI. */ | /* Padding to grow without breaking ABI. */ | ||||
u_int32_t __tcpi_pad[19]; /* Padding. */ | u_int32_t __tcpi_pad[19]; /* Padding. */ | ||||
}; | }; | ||||
/* | /* | ||||
* If this structure is provided when setting the TCP_FASTOPEN socket | * If this structure is provided when setting the TCP_FASTOPEN socket | ||||
* option, and the enable member is non-zero, a subsequent connect will use | * option, and the enable member is non-zero, a subsequent connect will use | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |