Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_var.h
Show First 20 Lines • Show All 374 Lines • ▼ Show 20 Lines | |||||
#define TF_RCVD_SCALE 0x00000040 /* other side has requested scaling */ | #define TF_RCVD_SCALE 0x00000040 /* other side has requested scaling */ | ||||
#define TF_REQ_TSTMP 0x00000080 /* have/will request timestamps */ | #define TF_REQ_TSTMP 0x00000080 /* have/will request timestamps */ | ||||
#define TF_RCVD_TSTMP 0x00000100 /* a timestamp was received in SYN */ | #define TF_RCVD_TSTMP 0x00000100 /* a timestamp was received in SYN */ | ||||
#define TF_SACK_PERMIT 0x00000200 /* other side said I could SACK */ | #define TF_SACK_PERMIT 0x00000200 /* other side said I could SACK */ | ||||
#define TF_NEEDSYN 0x00000400 /* send SYN (implicit state) */ | #define TF_NEEDSYN 0x00000400 /* send SYN (implicit state) */ | ||||
#define TF_NEEDFIN 0x00000800 /* send FIN (implicit state) */ | #define TF_NEEDFIN 0x00000800 /* send FIN (implicit state) */ | ||||
#define TF_NOPUSH 0x00001000 /* don't push */ | #define TF_NOPUSH 0x00001000 /* don't push */ | ||||
#define TF_PREVVALID 0x00002000 /* saved values for bad rxmit valid */ | #define TF_PREVVALID 0x00002000 /* saved values for bad rxmit valid */ | ||||
#define TF_UNUSED1 0x00004000 /* unused */ | #define TF_WAKESOR 0x00004000 /* wake up receive socket */ | ||||
#define TF_GPUTINPROG 0x00008000 /* Goodput measurement in progress */ | #define TF_GPUTINPROG 0x00008000 /* Goodput measurement in progress */ | ||||
#define TF_MORETOCOME 0x00010000 /* More data to be appended to sock */ | #define TF_MORETOCOME 0x00010000 /* More data to be appended to sock */ | ||||
#define TF_LQ_OVERFLOW 0x00020000 /* listen queue overflow */ | #define TF_LQ_OVERFLOW 0x00020000 /* listen queue overflow */ | ||||
#define TF_LASTIDLE 0x00040000 /* connection was previously idle */ | #define TF_LASTIDLE 0x00040000 /* connection was previously idle */ | ||||
#define TF_RXWIN0SENT 0x00080000 /* sent a receiver win 0 in response */ | #define TF_RXWIN0SENT 0x00080000 /* sent a receiver win 0 in response */ | ||||
#define TF_FASTRECOVERY 0x00100000 /* in NewReno Fast Recovery */ | #define TF_FASTRECOVERY 0x00100000 /* in NewReno Fast Recovery */ | ||||
#define TF_WASFRECOVERY 0x00200000 /* was in NewReno Fast Recovery */ | #define TF_WASFRECOVERY 0x00200000 /* was in NewReno Fast Recovery */ | ||||
#define TF_SIGNATURE 0x00400000 /* require MD5 digests (RFC2385) */ | #define TF_SIGNATURE 0x00400000 /* require MD5 digests (RFC2385) */ | ||||
#define TF_FORCEDATA 0x00800000 /* force out a byte */ | #define TF_FORCEDATA 0x00800000 /* force out a byte */ | ||||
#define TF_TSO 0x01000000 /* TSO enabled on this connection */ | #define TF_TSO 0x01000000 /* TSO enabled on this connection */ | ||||
#define TF_TOE 0x02000000 /* this connection is offloaded */ | #define TF_TOE 0x02000000 /* this connection is offloaded */ | ||||
#define TF_UNUSED3 0x04000000 /* unused */ | #define TF_WAKESOW 0x04000000 /* wake up send socket */ | ||||
#define TF_UNUSED4 0x08000000 /* unused */ | #define TF_UNUSED1 0x08000000 /* unused */ | ||||
#define TF_UNUSED5 0x10000000 /* unused */ | #define TF_UNUSED2 0x10000000 /* unused */ | ||||
#define TF_CONGRECOVERY 0x20000000 /* congestion recovery mode */ | #define TF_CONGRECOVERY 0x20000000 /* congestion recovery mode */ | ||||
#define TF_WASCRECOVERY 0x40000000 /* was in congestion recovery */ | #define TF_WASCRECOVERY 0x40000000 /* was in congestion recovery */ | ||||
#define TF_FASTOPEN 0x80000000 /* TCP Fast Open indication */ | #define TF_FASTOPEN 0x80000000 /* TCP Fast Open indication */ | ||||
#define IN_FASTRECOVERY(t_flags) (t_flags & TF_FASTRECOVERY) | #define IN_FASTRECOVERY(t_flags) (t_flags & TF_FASTRECOVERY) | ||||
#define ENTER_FASTRECOVERY(t_flags) t_flags |= TF_FASTRECOVERY | #define ENTER_FASTRECOVERY(t_flags) t_flags |= TF_FASTRECOVERY | ||||
#define EXIT_FASTRECOVERY(t_flags) t_flags &= ~TF_FASTRECOVERY | #define EXIT_FASTRECOVERY(t_flags) t_flags &= ~TF_FASTRECOVERY | ||||
▲ Show 20 Lines • Show All 512 Lines • ▼ Show 20 Lines | struct tcpcb * | ||||
tcp_drop(struct tcpcb *, int); | tcp_drop(struct tcpcb *, int); | ||||
void tcp_drain(void); | void tcp_drain(void); | ||||
void tcp_init(void); | void tcp_init(void); | ||||
void tcp_fini(void *); | void tcp_fini(void *); | ||||
char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, void *, | char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, void *, | ||||
const void *); | const void *); | ||||
char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, void *, | char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, void *, | ||||
const void *); | const void *); | ||||
int tcp_reass(struct tcpcb *, struct tcphdr *, tcp_seq *, int *, struct mbuf *); | int tcp_reass(struct tcpcb *, struct tcphdr *, tcp_seq *, int *, | ||||
struct mbuf *); | |||||
void tcp_reass_global_init(void); | void tcp_reass_global_init(void); | ||||
void tcp_reass_flush(struct tcpcb *); | void tcp_reass_flush(struct tcpcb *); | ||||
void tcp_dooptions(struct tcpopt *, u_char *, int, int); | void tcp_dooptions(struct tcpopt *, u_char *, int, int); | ||||
void tcp_dropwithreset(struct mbuf *, struct tcphdr *, | void tcp_dropwithreset(struct mbuf *, struct tcphdr *, | ||||
struct tcpcb *, int, int); | struct tcpcb *, int, int); | ||||
void tcp_pulloutofband(struct socket *, | void tcp_pulloutofband(struct socket *, | ||||
struct tcphdr *, struct mbuf *, int); | struct tcphdr *, struct mbuf *, int); | ||||
void tcp_xmit_timer(struct tcpcb *, int); | void tcp_xmit_timer(struct tcpcb *, int); | ||||
void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *); | void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *); | ||||
void cc_ack_received(struct tcpcb *tp, struct tcphdr *th, | void cc_ack_received(struct tcpcb *tp, struct tcphdr *th, | ||||
uint16_t nsegs, uint16_t type); | uint16_t nsegs, uint16_t type); | ||||
void cc_conn_init(struct tcpcb *tp); | void cc_conn_init(struct tcpcb *tp); | ||||
void cc_post_recovery(struct tcpcb *tp, struct tcphdr *th); | void cc_post_recovery(struct tcpcb *tp, struct tcphdr *th); | ||||
void cc_ecnpkt_handler(struct tcpcb *tp, struct tcphdr *th, uint8_t iptos); | void cc_ecnpkt_handler(struct tcpcb *tp, struct tcphdr *th, uint8_t iptos); | ||||
void cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type); | void cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type); | ||||
#ifdef TCP_HHOOK | #ifdef TCP_HHOOK | ||||
void hhook_run_tcp_est_in(struct tcpcb *tp, | void hhook_run_tcp_est_in(struct tcpcb *tp, | ||||
struct tcphdr *th, struct tcpopt *to); | struct tcphdr *th, struct tcpopt *to); | ||||
#endif | #endif | ||||
int tcp_input(struct mbuf **, int *, int); | int tcp_input(struct mbuf **, int *, int); | ||||
int tcp_autorcvbuf(struct mbuf *, struct tcphdr *, struct socket *, | int tcp_autorcvbuf(struct mbuf *, struct tcphdr *, struct socket *, | ||||
struct tcpcb *, int); | struct tcpcb *, int); | ||||
void tcp_handle_wakeup(struct tcpcb *, struct socket *); | |||||
void tcp_do_segment(struct mbuf *, struct tcphdr *, | void tcp_do_segment(struct mbuf *, struct tcphdr *, | ||||
struct socket *, struct tcpcb *, int, int, uint8_t); | struct socket *, struct tcpcb *, int, int, uint8_t); | ||||
int register_tcp_functions(struct tcp_function_block *blk, int wait); | int register_tcp_functions(struct tcp_function_block *blk, int wait); | ||||
int register_tcp_functions_as_names(struct tcp_function_block *blk, | int register_tcp_functions_as_names(struct tcp_function_block *blk, | ||||
int wait, const char *names[], int *num_names); | int wait, const char *names[], int *num_names); | ||||
int register_tcp_functions_as_name(struct tcp_function_block *blk, | int register_tcp_functions_as_name(struct tcp_function_block *blk, | ||||
const char *name, int wait); | const char *name, int wait); | ||||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |