Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/cc/cc.h
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
* 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. */ | ||||
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) */ | ||||
int32_t sample_rtt_us; /* RTT as measured by this ack in us */ | |||||
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; | ||||
uint16_t nsegs; /* # segments coalesced into current chain. */ | uint16_t nsegs; /* # segments coalesced into current chain. */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |