]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check the timeval passed to BIOCSRTIMEOUT with itimerfix. Use tvtohz()
authorAlexander Langer <alex@FreeBSD.org>
Thu, 8 Oct 1998 00:32:08 +0000 (00:32 +0000)
committerAlexander Langer <alex@FreeBSD.org>
Thu, 8 Oct 1998 00:32:08 +0000 (00:32 +0000)
commitbdc2cdc5fe5688742992ebe51b6bc6fc7dd5d2e6
tree25501e3549ca1a69f888b21214717772a6240fad
parent47230ffe29299f0c7e42d10d8f6ac16fd31b87b7
Check the timeval passed to BIOCSRTIMEOUT with itimerfix.  Use tvtohz()
to convert the timeval into a tick count.

Suggested by: bde
Reviewed by: bde

Handle hz > 1000 in BIOCGRTIMEOUT.

Pointed out by: bde
Reviewed by: bde
Obtained from: OpenBSD
sys/net/bpf.c