summaryrefslogtreecommitdiff
path: root/usr.bin/tcpbench
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2018-05-22 18:33:42 +0000
committercheloha <cheloha@cvs.openbsd.org>2018-05-22 18:33:42 +0000
commitedaa4fc85aa6a6f2a7a6371f2282ab83c49cec3c (patch)
tree50a6362302870ab54204c91758f8457f693f1546 /usr.bin/tcpbench
parent0b4fa9bb3d4d2bbaafe1414f86abd2d5043a197b (diff)
nanosleep: ensure tv_nsec input is on [0, 1000000000)
Instead of converting timespec -> timeval and truncating the input, check with timespecfix and use tstohz(9) for the tsleep. All other contemporary systems check this correctly. Also add a regression test for this case. ok tb@
Diffstat (limited to 'usr.bin/tcpbench')
0 files changed, 0 insertions, 0 deletions