* tcp_ts_getticks() in ms, should be 1ms < x < 1000ms according to RFC 1323. * We always use 1ms granularity independent of hz. */
| 86 | * We always use 1ms granularity independent of hz. |
| 87 | */ |
| 88 | static __inline uint32_t |
| 89 | tcp_ts_getticks(void) |
| 90 | { |
| 91 | struct timeval tv; |
| 92 | |
| 93 | /* |
| 94 | * getmicrouptime() should be good enough for any 1-1000ms granularity. |
| 95 | * Do not use getmicrotime() here as it might break nfsroot/tcp. |
| 96 | */ |
| 97 | getmicrouptime(&tv); |
| 98 | return (tv.tv_sec * 1000 + tv.tv_usec / 1000); |
| 99 | } |
| 100 | #endif /* _KERNEL */ |
| 101 | |
| 102 | #endif /* _NETINET_TCP_SEQ_H_ */ |
no test coverage detected