freebsd-src/sys/net
Poul-Henning Kamp 227ee8a188 Eradicate the variable "time" from the kernel, using various measures.
"time" wasn't a atomic variable, so splfoo() protection were needed
around any access to it, unless you just wanted the seconds part.

Most uses of time.tv_sec now uses the new variable time_second instead.

gettime() changed to getmicrotime(0.

Remove a couple of unneeded splfoo() protections, the new getmicrotime()
is atomic, (until Bruce sets a breakpoint in it).

A couple of places needed random data, so use read_random() instead
of mucking about with time which isn't random.

Add a new nfs_curusec() function.

Mark a couple of bogosities involving the now disappeard time variable.

Update ffs_update() to avoid the weird "== &time" checks, by fixing the
one remaining call that passwd &time as args.

Change profiling in ncr.c to use ticks instead of time.  Resolution is
the same.

Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call
hzto() which subtracts time" sequences.

Reviewed by:	bde
1998-03-30 09:56:58 +00:00
..
bpf.c Don't depend on "implicit int" or bloat the data section in the 1998-02-20 13:46:58 +00:00
bpf.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
bpf_compat.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
bpf_filter.c Removed unused #includes. 1997-08-02 14:33:27 +00:00
bpfdesc.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
bsd_comp.c Removed unused #includes. 1997-10-28 15:59:26 +00:00
ethernet.h Add preliminary support for IEEE 802.1Q VLAN tagging. It doesn't actually 1998-03-18 01:40:12 +00:00
fddi.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
hostcache.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
hostcache.h Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
if.c Make COMPAT_43 and COMPAT_SUNOS new-style options. 1997-12-16 17:40:42 +00:00
if.h On most other systems "out there", <net/if.h> does not require the caller 1998-03-21 13:36:20 +00:00
if_arp.h Fixed change prerequisites for <net/if_arp.h>: 1998-01-10 07:29:10 +00:00
if_atm.h import Chuck Cranor's ATM driver 1997-05-09 07:48:14 +00:00
if_atmsubr.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
if_disc.c Make INET a proper option. 1998-01-08 23:42:31 +00:00
if_dl.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
if_ethersubr.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
if_fddisubr.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
if_llc.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
if_loop.c NETATALK -> opt_atalk.h 1998-01-09 00:51:57 +00:00
if_media.c Staticize. 1998-02-09 06:11:36 +00:00
if_media.h Make it compile on FreeBSD, add $Id$ 1997-05-03 20:58:10 +00:00
if_mib.c Removed unused #includes. 1997-08-02 14:33:27 +00:00
if_mib.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
if_ppp.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
if_ppp.h Braino on my part.. a #define isn't a reference to a structure, so the 1997-10-18 09:02:39 +00:00
if_pppvar.h Back out the `PPP_FILTER => NBPFILTER' changes 1997-10-18 00:46:10 +00:00
if_sl.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
if_slvar.h Remove bogus #ifdef INET - SLIP doesn't compile without INET. 1997-12-20 16:44:51 +00:00
if_sppp.h Jumbo patch to implement PAP and CHAP for sppp(4). Partially based on 1997-10-11 11:25:28 +00:00
if_spppsubr.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
if_tun.c Don't depend on "implicit int" or bloat the data section in the 1998-02-20 13:46:58 +00:00
if_tun.h Correct $Id$ 1998-01-26 19:52:34 +00:00
if_tunvar.h Move softc stuff into if_tunvar.h 1998-01-11 17:52:33 +00:00
if_types.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
if_var.h Add a per-interface-address pointer to a function that can be supplied 1997-08-28 01:17:12 +00:00
if_vlan.c Add preliminary support for IEEE 802.1Q VLAN tagging. It doesn't actually 1998-03-18 01:40:12 +00:00
if_vlan_var.h Add preliminary support for IEEE 802.1Q VLAN tagging. It doesn't actually 1998-03-18 01:40:12 +00:00
netisr.h Fixed gratuitous ANSIisms. 1997-09-16 11:44:05 +00:00
ppp_comp.h ppp-2.3.x ships with a bad compression number for deflate. It uses number 1998-03-22 06:51:57 +00:00
ppp_deflate.c Quieten a debug message.. This happens under "normal" operation by 4 bytes 1998-03-25 14:28:28 +00:00
ppp_defs.h Update kernel parts of pppd from 2.2.0 to 2.3.0. I've yet to look at the 1997-08-19 14:10:50 +00:00
ppp_tty.c Eradicate the variable "time" from the kernel, using various measures. 1998-03-30 09:56:58 +00:00
radix.c Unstaticized rn_delete() and rn_lookup(). They are used in dark corners 1997-11-24 13:50:24 +00:00
radix.h Unstaticized rn_delete() and rn_lookup(). They are used in dark corners 1997-11-24 13:50:24 +00:00
raw_cb.c Removed unused #includes. 1997-10-28 15:59:26 +00:00
raw_cb.h Added #include of <sys/queue.h> so that this file is more "self"-sufficent. 1998-02-03 22:19:35 +00:00
raw_usrreq.c Remove a bunch of variables which were unused both in GENERIC and LINT. 1997-11-07 08:53:44 +00:00
route.c Staticize. 1998-02-09 06:11:36 +00:00
route.h Added a forward struct declaration so that this file is less 1998-03-23 13:58:02 +00:00
rtsock.c Fixed bug in RTM_ADD where rmx_locks weren't being set on the new route, 1997-10-31 08:53:13 +00:00
slcompress.c Update kernel parts of pppd from 2.2.0 to 2.3.0. I've yet to look at the 1997-08-19 14:10:50 +00:00
slcompress.h Update kernel parts of pppd from 2.2.0 to 2.3.0. I've yet to look at the 1997-08-19 14:10:50 +00:00
slip.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
zlib.c Update kernel parts of ppp to ppp-2.3.3. Not much has changed except 1998-03-21 20:56:16 +00:00
zlib.h Update kernel parts of ppp to ppp-2.3.3. Not much has changed except 1998-03-21 20:56:16 +00:00