diff options
| author | Archie Cobbs <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
|---|---|---|
| committer | Archie Cobbs <archie@FreeBSD.org> | 1998-12-07 21:58:50 +0000 |
| commit | f1d19042b082d95f07a0027e596ba2405aa8a9a5 (patch) | |
| tree | b856be4db5efb04d68d01039a157119ac8613b9f /sys/netinet/ip_log.c | |
| parent | f769cca5eb9fed523269d85eefe74037ff7bd1b5 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/ip_log.c')
| -rw-r--r-- | sys/netinet/ip_log.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/netinet/ip_log.c b/sys/netinet/ip_log.c index d41f070d2745..8a826ed2985c 100644 --- a/sys/netinet/ip_log.c +++ b/sys/netinet/ip_log.c @@ -5,7 +5,7 @@ * provided that this notice is preserved and due credit is given * to the original author and the contributors. * - * $Id: ip_log.c,v 1.4 1998/04/06 11:40:42 phk Exp $ + * $Id: ip_log.c,v 1.5 1998/11/26 18:54:52 eivind Exp $ */ #include "opt_ipfilter.h" @@ -135,7 +135,6 @@ static struct wait_queue *iplwait[IPL_LOGMAX+1]; */ void ipflog_init() { - struct timeval tv; int i; for (i = IPL_LOGMAX; i >= 0; i--) { @@ -146,12 +145,16 @@ void ipflog_init() # if defined(__FreeBSD__) && __FreeBSD_version >= 300000 read_random(&iplcrcinit, sizeof iplcrcinit); # else + { + struct timeval tv; + #if BSD >= 199306 || defined(__FreeBSD__) || defined(__sgi) - microtime(&tv); + microtime(&tv); # else - uniqtime(&tv); + uniqtime(&tv); # endif - iplcrcinit = tv.tv_sec ^ (tv.tv_usec << 8) ^ tv.tv_usec; + iplcrcinit = tv.tv_sec ^ (tv.tv_usec << 8) ^ tv.tv_usec; + } # endif } |
