diff options
author | Tamir Duberstein <tamird@google.com> | 2021-08-26 12:43:11 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-08-26 12:45:38 -0700 |
commit | ec46befd1099d2050fcccd60c4fe779a04d1ea45 (patch) | |
tree | 4c90a3d099128ea7ed9ad30af76f1beca13992f9 /pkg/sentry/time/BUILD | |
parent | 9f3fa7635e63bb18f0023c7ed960405a8ac341c0 (diff) |
Centralize TCP timestamp logic
Remove freestanding functions that convert time values to raw integers;
centralize time->uint32 logic in methods on tcp.endpoint. Importantly,
the knowledge that TSVal is in milliseconds now lives in adjacent
functions rather than being spread around various files.
Incidental cleanup:
- Remove unused constant
- Remove redundant conversion
- Remove redundant parentheses
- Add missing error check
PiperOrigin-RevId: 393184768
Diffstat (limited to 'pkg/sentry/time/BUILD')
0 files changed, 0 insertions, 0 deletions