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

Function bbr_ts_convert

freebsd/netinet/tcp_stacks/bbr.c:6851–6858  ·  view source on GitHub ↗

* Convert a timestamp that the main stack * uses (milliseconds) into one that bbr uses * (microseconds). Return that converted timestamp. */

Source from the content-addressed store, hash-verified

6849 * (microseconds). Return that converted timestamp.
6850 */
6851static uint32_t
6852bbr_ts_convert(uint32_t cts) {
6853 uint32_t sec, msec;
6854
6855 sec = cts / MS_IN_USEC;
6856 msec = cts - (MS_IN_USEC * sec);
6857 return ((sec * USECS_IN_SECOND) + (msec * MS_IN_USEC));
6858}
6859
6860/*
6861 * Return 0 if we did not update the RTT time, return

Callers 2

bbr_update_rttFunction · 0.85
bbr_log_ackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected