freebsd-dev/sys/net
Poul-Henning Kamp 2447bec829 Simplify cdevsw registration.
The cdevsw_add() function now finds the major number(s) in the
struct cdevsw passed to it.  cdevsw_add_generic() is no longer
needed, cdevsw_add() does the same thing.

cdevsw_add() will print an message if the d_maj field looks bogus.

Remove nblkdev and nchrdev variables.  Most places they were used
bogusly.  Instead check a dev_t for validity by seeing if devsw()
or bdevsw() returns NULL.

Move bdevsw() and devsw() functions to kern/kern_conf.c

Bump __FreeBSD_version to 400006

This commit removes:
        72 bogus makedev() calls
        26 bogus SYSINIT functions

if_xe.c bogusly accessed cdevsw[], author/maintainer please fix.

I4b and vinum not changed.  Patches emailed to authors.  LINT
probably broken until they catch up.
1999-05-31 11:29:30 +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 Break long lines that I introduced in a previous commit. 1999-04-11 02:52:31 +00:00
bpf.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
bpf.h Change BPF_ALIGNMENT to long, necessary for correct alignment on Alpha. 1998-10-04 21:53:59 +00:00
bpfdesc.h I got another batch of suggestions for cosmetic changes from bde. 1998-11-11 10:56:07 +00:00
bridge.c Free the dummynet descriptor in ip_dummynet, not in the called 1999-05-04 16:20:33 +00:00
bridge.h Bridging support. Wait for LINT to be updated before trying it. 1998-12-14 17:58:05 +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_arp.h World, I'd like you to meet the first FreeBSD token Ring driver. 1999-02-20 11:18:00 +00:00
if_atm.h clean up en atm driver 1999-05-08 14:23:40 +00:00
if_atmsubr.c clean up en atm driver 1999-05-08 14:23:40 +00:00
if_disc.c Make the use of 'disc' vs 'ds' as prefix consistent by making all 'disc'. 1998-12-14 01:59:16 +00:00
if_dl.h Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
if_ethersubr.c * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +00:00
if_fddisubr.c Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
if_iso88025subr.c Submitted by: Larry Lile 1999-03-10 10:11:43 +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 Set ifq_maxlen. 1999-02-20 21:03:53 +00:00
if_media.c Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
if_media.h Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
if_mib.c * Change sysctl from using linker_set to construct its tree using SLISTs. 1999-02-16 10:49:55 +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 Suser() simplification: 1999-04-27 11:18:52 +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 This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
if_sl.c Suser() simplification: 1999-04-27 11:18:52 +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 rganize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better, 1999-03-30 13:28:26 +00:00
if_spppsubr.c rganize the various modes (CISCO/AUTO/DEMAND/LEASED) a little bit better, 1999-03-30 13:28:26 +00:00
if_tun.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
if_tun.h Implement TUNSIFMODE and TUNSLMODE. 1999-03-24 21:20:12 +00:00
if_tunvar.h Implement TUNSIFMODE and TUNSLMODE. 1999-03-24 21:20:12 +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 PR: kern/10570 1999-05-16 17:09:20 +00:00
if_vlan_var.h Grrr... botched remote commit. Let's try this again: vlan updates, 1999-03-15 01:22:01 +00:00
if_vlan.c Add missing SYSCTL_DECL(_net_link); required by newer sysctl implementation. 1999-04-07 23:26:43 +00:00
if.c This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
if.h Fix some disordering I introduced with the jail code. 1999-05-08 07:00:04 +00:00
iso88025.h Submitted by: Larry Lile 1999-03-10 10:11:43 +00:00
netisr.h Make NETISR_SET use a SYSINIT() rather than a linker set. 1999-04-26 08:52:16 +00:00
ppp_comp.h Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +00:00
ppp_deflate.c Zap what appears to be a relic of the older version of zlib. The other 1998-06-20 16:55:44 +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 I got tired of seeing all the cdevsw[major(foo)] all over the place. 1999-05-08 06:40:31 +00:00
radix.c Postpone route_init() until all domains are attached. 1999-04-29 03:22:19 +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 Added a used include (in ifdefed code). 1998-06-07 12:02:59 +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 Suser() simplification: 1999-04-27 11:18:52 +00:00
route.c Postpone route_init() until all domains are attached. 1999-04-29 03:22:19 +00:00
route.h Add sufficient braces to keep egcs happy about potentially ambiguous 1999-05-06 18:13:11 +00:00
rtsock.c Postpone route_init() until all domains are attached. 1999-04-29 03:22:19 +00:00
slcompress.c Cast pointers to uintptr_t/intptr_t instead of to u_long/long, 1998-07-15 02:32:35 +00:00
slcompress.h Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +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 Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00
zlib.h Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 22:42:27 +00:00