Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_var.h
Show First 20 Lines • Show All 280 Lines • ▼ Show 20 Lines | |||||
#endif /* _KERNEL || _WANT_TCPCB */ | #endif /* _KERNEL || _WANT_TCPCB */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
struct tcptemp { | struct tcptemp { | ||||
u_char tt_ipgen[40]; /* the size must be of max ip header, now IPv6 */ | u_char tt_ipgen[40]; /* the size must be of max ip header, now IPv6 */ | ||||
struct tcphdr tt_t; | struct tcphdr tt_t; | ||||
}; | }; | ||||
/* SACK scoreboard update status */ | |||||
#define SACK_NOCHANGE 0 | |||||
#define SACK_CHANGE 1 | |||||
#define SACK_NEWLOSS 2 | |||||
glebius: Maybe make at a typedef enum? Funcion arguments will look prettier in a debugger session. | |||||
/* Enable TCP/UDP tunneling port */ | /* Enable TCP/UDP tunneling port */ | ||||
#define TCP_TUNNELING_PORT_MIN 0 | #define TCP_TUNNELING_PORT_MIN 0 | ||||
#define TCP_TUNNELING_PORT_MAX 65535 | #define TCP_TUNNELING_PORT_MAX 65535 | ||||
#define TCP_TUNNELING_PORT_DEFAULT 0 | #define TCP_TUNNELING_PORT_DEFAULT 0 | ||||
/* Enable TCP/UDP tunneling port */ | /* Enable TCP/UDP tunneling port */ | ||||
#define TCP_TUNNELING_OVERHEAD_MIN sizeof(struct udphdr) | #define TCP_TUNNELING_OVERHEAD_MIN sizeof(struct udphdr) | ||||
#define TCP_TUNNELING_OVERHEAD_MAX 1024 | #define TCP_TUNNELING_OVERHEAD_MAX 1024 | ||||
▲ Show 20 Lines • Show All 592 Lines • ▼ Show 20 Lines | |||||
VNET_DECLARE(int, tcp_sc_rst_sock_fail); | VNET_DECLARE(int, tcp_sc_rst_sock_fail); | ||||
VNET_DECLARE(int, tcp_sendspace); | VNET_DECLARE(int, tcp_sendspace); | ||||
VNET_DECLARE(int, tcp_udp_tunneling_overhead); | VNET_DECLARE(int, tcp_udp_tunneling_overhead); | ||||
VNET_DECLARE(int, tcp_udp_tunneling_port); | VNET_DECLARE(int, tcp_udp_tunneling_port); | ||||
VNET_DECLARE(struct inpcbhead, tcb); | VNET_DECLARE(struct inpcbhead, tcb); | ||||
VNET_DECLARE(struct inpcbinfo, tcbinfo); | VNET_DECLARE(struct inpcbinfo, tcbinfo); | ||||
#define V_tcp_do_prr VNET(tcp_do_prr) | #define V_tcp_do_prr VNET(tcp_do_prr) | ||||
#define V_tcp_do_prr_conservative VNET(tcp_do_prr_conservative) | |||||
#define V_tcp_do_newcwv VNET(tcp_do_newcwv) | #define V_tcp_do_newcwv VNET(tcp_do_newcwv) | ||||
#define V_drop_synfin VNET(drop_synfin) | #define V_drop_synfin VNET(drop_synfin) | ||||
#define V_path_mtu_discovery VNET(path_mtu_discovery) | #define V_path_mtu_discovery VNET(path_mtu_discovery) | ||||
#define V_tcb VNET(tcb) | #define V_tcb VNET(tcb) | ||||
#define V_tcbinfo VNET(tcbinfo) | #define V_tcbinfo VNET(tcbinfo) | ||||
#define V_tcp_abc_l_var VNET(tcp_abc_l_var) | #define V_tcp_abc_l_var VNET(tcp_abc_l_var) | ||||
#define V_tcp_autorcvbuf_max VNET(tcp_autorcvbuf_max) | #define V_tcp_autorcvbuf_max VNET(tcp_autorcvbuf_max) | ||||
#define V_tcp_autosndbuf_inc VNET(tcp_autosndbuf_inc) | #define V_tcp_autosndbuf_inc VNET(tcp_autosndbuf_inc) | ||||
▲ Show 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | |||||
int tcp_sack_doack(struct tcpcb *, struct tcpopt *, tcp_seq); | int tcp_sack_doack(struct tcpcb *, struct tcpopt *, tcp_seq); | ||||
int tcp_dsack_block_exists(struct tcpcb *); | int tcp_dsack_block_exists(struct tcpcb *); | ||||
void tcp_update_dsack_list(struct tcpcb *, tcp_seq, tcp_seq); | void tcp_update_dsack_list(struct tcpcb *, tcp_seq, tcp_seq); | ||||
void tcp_update_sack_list(struct tcpcb *tp, tcp_seq rcv_laststart, tcp_seq rcv_lastend); | void tcp_update_sack_list(struct tcpcb *tp, tcp_seq rcv_laststart, tcp_seq rcv_lastend); | ||||
void tcp_clean_dsack_blocks(struct tcpcb *tp); | void tcp_clean_dsack_blocks(struct tcpcb *tp); | ||||
void tcp_clean_sackreport(struct tcpcb *tp); | void tcp_clean_sackreport(struct tcpcb *tp); | ||||
void tcp_sack_adjust(struct tcpcb *tp); | void tcp_sack_adjust(struct tcpcb *tp); | ||||
struct sackhole *tcp_sack_output(struct tcpcb *tp, int *sack_bytes_rexmt); | struct sackhole *tcp_sack_output(struct tcpcb *tp, int *sack_bytes_rexmt); | ||||
void tcp_do_prr_ack(struct tcpcb *, struct tcphdr *, struct tcpopt *); | void tcp_do_prr_ack(struct tcpcb *, struct tcphdr *, struct tcpopt *, int); | ||||
void tcp_sack_partialack(struct tcpcb *, struct tcphdr *); | void tcp_sack_partialack(struct tcpcb *, struct tcphdr *); | ||||
void tcp_free_sackholes(struct tcpcb *tp); | void tcp_free_sackholes(struct tcpcb *tp); | ||||
int tcp_newreno(struct tcpcb *, struct tcphdr *); | int tcp_newreno(struct tcpcb *, struct tcphdr *); | ||||
int tcp_compute_pipe(struct tcpcb *); | int tcp_compute_pipe(struct tcpcb *); | ||||
uint32_t tcp_compute_initwnd(uint32_t); | uint32_t tcp_compute_initwnd(uint32_t); | ||||
void tcp_sndbuf_autoscale(struct tcpcb *, struct socket *, uint32_t); | void tcp_sndbuf_autoscale(struct tcpcb *, struct socket *, uint32_t); | ||||
int tcp_stats_sample_rollthedice(struct tcpcb *tp, void *seed_bytes, | int tcp_stats_sample_rollthedice(struct tcpcb *tp, void *seed_bytes, | ||||
size_t seed_len); | size_t seed_len); | ||||
Show All 32 Lines |
Maybe make at a typedef enum? Funcion arguments will look prettier in a debugger session.