* Convert a timestamp that the main stack * uses (milliseconds) into one that bbr uses * (microseconds). Return that converted timestamp. */
| 6849 | * (microseconds). Return that converted timestamp. |
| 6850 | */ |
| 6851 | static uint32_t |
| 6852 | bbr_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 |
no outgoing calls
no test coverage detected