Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_var.h
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | struct tcpcb { | ||||
struct tcp_function_block *t_fb;/* TCP function call block */ | struct tcp_function_block *t_fb;/* TCP function call block */ | ||||
void *t_fb_ptr; /* Pointer to t_fb specific data */ | void *t_fb_ptr; /* Pointer to t_fb specific data */ | ||||
uint32_t t_maxseg:24, /* maximum segment size */ | uint32_t t_maxseg:24, /* maximum segment size */ | ||||
t_logstate:8; /* State of "black box" logging */ | t_logstate:8; /* State of "black box" logging */ | ||||
uint32_t t_port:16, /* Tunneling (over udp) port */ | uint32_t t_port:16, /* Tunneling (over udp) port */ | ||||
t_state:4, /* state of this connection */ | t_state:4, /* state of this connection */ | ||||
t_idle_reduce : 1, | t_idle_reduce : 1, | ||||
t_delayed_ack: 7, /* Delayed ack variable */ | t_delayed_ack: 7, /* Delayed ack variable */ | ||||
bits_spare : 4; | t_fin_is_rst: 1, /* Are fin's treated as resets */ | ||||
bits_spare : 3; | |||||
u_int t_flags; | u_int t_flags; | ||||
tcp_seq snd_una; /* sent but unacknowledged */ | tcp_seq snd_una; /* sent but unacknowledged */ | ||||
tcp_seq snd_max; /* highest sequence number sent; | tcp_seq snd_max; /* highest sequence number sent; | ||||
* used to recognize retransmits | * used to recognize retransmits | ||||
*/ | */ | ||||
tcp_seq snd_nxt; /* send next */ | tcp_seq snd_nxt; /* send next */ | ||||
tcp_seq snd_up; /* send urgent pointer */ | tcp_seq snd_up; /* send urgent pointer */ | ||||
uint32_t snd_wnd; /* send window */ | uint32_t snd_wnd; /* send window */ | ||||
▲ Show 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct tcp_function_block { | struct tcp_function_block { | ||||
char tfb_tcp_block_name[TCP_FUNCTION_NAME_LEN_MAX]; | char tfb_tcp_block_name[TCP_FUNCTION_NAME_LEN_MAX]; | ||||
int (*tfb_tcp_output)(struct tcpcb *); | int (*tfb_tcp_output)(struct tcpcb *); | ||||
int (*tfb_tcp_output_wtime)(struct tcpcb *, const struct timeval *); | int (*tfb_tcp_output_wtime)(struct tcpcb *, const struct timeval *); | ||||
void (*tfb_tcp_do_segment)(struct mbuf *, struct tcphdr *, | void (*tfb_tcp_do_segment)(struct mbuf *, struct tcphdr *, | ||||
struct socket *, struct tcpcb *, | struct socket *, struct tcpcb *, | ||||
int, int, uint8_t); | int, int, uint8_t); | ||||
int (*tfb_do_queued_segments)(struct socket *, struct tcpcb *, int); | |||||
int (*tfb_do_segment_nounlock)(struct mbuf *, struct tcphdr *, | |||||
struct socket *, struct tcpcb *, | |||||
int, int, uint8_t, | |||||
int, struct timeval *); | |||||
void (*tfb_tcp_hpts_do_segment)(struct mbuf *, struct tcphdr *, | void (*tfb_tcp_hpts_do_segment)(struct mbuf *, struct tcphdr *, | ||||
struct socket *, struct tcpcb *, | struct socket *, struct tcpcb *, | ||||
int, int, uint8_t, | int, int, uint8_t, | ||||
int, struct timeval *); | int, struct timeval *); | ||||
int (*tfb_tcp_ctloutput)(struct socket *so, struct sockopt *sopt, | int (*tfb_tcp_ctloutput)(struct socket *so, struct sockopt *sopt, | ||||
struct inpcb *inp, struct tcpcb *tp); | struct inpcb *inp, struct tcpcb *tp); | ||||
/* Optional memory allocation/free routine */ | /* Optional memory allocation/free routine */ | ||||
int (*tfb_tcp_fb_init)(struct tcpcb *); | int (*tfb_tcp_fb_init)(struct tcpcb *); | ||||
▲ Show 20 Lines • Show All 690 Lines • Show Last 20 Lines |