MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bbr_randomize_extra_state_time

Function bbr_randomize_extra_state_time

freebsd/netinet/tcp_stacks/bbr.c:3089–3099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3087}
3088
3089static void
3090bbr_randomize_extra_state_time(struct tcp_bbr *bbr)
3091{
3092 uint32_t ran, deduct;
3093
3094 ran = arc4random_uniform(bbr_rand_ot);
3095 if (ran) {
3096 deduct = bbr->r_ctl.rc_level_state_extra / ran;
3097 bbr->r_ctl.rc_level_state_extra -= deduct;
3098 }
3099}
3100/*
3101 * Return randomly the starting state
3102 * to use in probebw.

Callers 1

bbr_substate_changeFunction · 0.85

Calls 1

arc4random_uniformFunction · 0.85

Tested by

no test coverage detected