Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc.h
Show All 12 Lines | |||||
/* | /* | ||||
* Wrapper around transport structs that contain same-named congestion | * Wrapper around transport structs that contain same-named congestion | ||||
* control variables. Allows algos to be shared amongst multiple CC aware | * control variables. Allows algos to be shared amongst multiple CC aware | ||||
* transprots. | * transprots. | ||||
*/ | */ | ||||
struct cc_var { | struct cc_var { | ||||
void *cc_data; /* Per-connection private CC algorithm data. */ | void *cc_data; /* Per-connection private CC algorithm data. */ | ||||
int bytes_this_ack; /* # bytes acked by the current ACK. */ | int bytes_this_ack; /* # bytes acked by the current ACK. */ | ||||
uint16_t nsegs; /* # segments coalesced into current chain. */ | |||||
tcp_seq curack; /* Most recent ACK. */ | tcp_seq curack; /* Most recent ACK. */ | ||||
uint32_t flags; /* Flags for cc_var (see below) */ | uint32_t flags; /* Flags for cc_var (see below) */ | ||||
int type; /* Indicates which ptr is valid in ccvc. */ | int type; /* Indicates which ptr is valid in ccvc. */ | ||||
union ccv_container { | union ccv_container { | ||||
struct tcpcb *tcp; | struct tcpcb *tcp; | ||||
struct sctp_nets *sctp; | struct sctp_nets *sctp; | ||||
} ccvc; | } ccvc; | ||||
}; | }; | ||||
Show All 12 Lines |