freebsd-src/sys/net
Poul-Henning Kamp 46aa3347cb Convert all users of fldoff() to offsetof(). fldoff() is bad
because it only takes a struct tag which makes it impossible to
use unions, typedefs etc.

Define __offsetof() in <machine/ansi.h>

Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h>

Remove myriad of local offsetof() definitions.

Remove includes of <stddef.h> in kernel code.

NB: Kernelcode should *never* include from /usr/include !

Make <sys/queue.h> include <machine/ansi.h> to avoid polluting the API.

Deprecate <struct.h> with a warning.  The warning turns into an error on
01-12-2000 and the file gets removed entirely on 01-01-2001.

Paritials reviews by:   various.
Significant brucifications by:  bde
2000-10-27 11:45:49 +00:00
..
bpf.c Don't make_dev() in bpfopen() unless we need to. 2000-10-09 14:19:09 +00:00
bpf.h
bpf_compat.h
bpf_filter.c
bpfdesc.h
bridge.c In theory, m_dup should not be necessary, as m_copypacket should be 2000-09-25 17:24:02 +00:00
bridge.h
bsd_comp.c Remove #if DO_DEFLATE 2000-10-27 08:38:26 +00:00
ethernet.h
fddi.h
hostcache.c
hostcache.h
if.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
if.h
if_arp.h
if_atm.h
if_atmsubr.c
if_disc.c
if_dl.h
if_ef.c Properly setup link level header length for 802.2 and SNAP frames. 2000-09-30 14:33:53 +00:00
if_ethersubr.c Properly setup link level header length for 802.2 and SNAP frames. 2000-09-30 14:33:53 +00:00
if_faith.c
if_fddisubr.c
if_gif.c
if_gif.h
if_ieee80211.h
if_iso88025subr.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
if_llc.h
if_loop.c o Add missing "\n" to warning output in netinet/if_loop.c, when an 2000-09-04 21:46:27 +00:00
if_media.c
if_media.h
if_mib.c
if_mib.h
if_ppp.c
if_ppp.h
if_pppvar.h
if_sl.c Handle slip options in the usual way (generate a dummy options file in 2000-09-26 18:34:30 +00:00
if_slvar.h The slip driver used to allocate a mbuf cluster without attaching 2000-08-18 08:02:31 +00:00
if_sppp.h
if_spppsubr.c
if_stf.c Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
if_stf.h
if_tap.c Rename lminor() to dev2unit(). This function gives a linear unit number 2000-09-19 10:28:44 +00:00
if_tap.h
if_tapvar.h
if_tun.c BPF wants packets in host byte order whereas TUN_IFHEAD wants them 2000-10-15 18:49:17 +00:00
if_tun.h
if_tunvar.h
if_types.h
if_var.h Augment the 'ifaddr' structure with a 'struct if_data' to keep 2000-10-19 23:15:54 +00:00
if_vlan.c
if_vlan_var.h
intrq.c Do some cleanups of the HARP atm codes interface into the system: 2000-10-12 00:03:50 +00:00
intrq.h
iso88025.h
net_osdep.c
net_osdep.h repair endianness issue in IN_MULTICAST(). 2000-08-15 07:34:08 +00:00
netisr.h - Overhaul the software interrupt code to use interrupt threads for each 2000-10-25 05:19:40 +00:00
pfil.9
pfil.c
pfil.h
pfkeyv2.h
ppp_comp.h Remove bogus undocumented macros used to control conditional assembly. 2000-10-27 08:39:41 +00:00
ppp_deflate.c Remove #if DO_DEFLATE 2000-10-27 08:38:26 +00:00
ppp_defs.h
ppp_tty.c Removed unused includes (garbage left over/created by the SMPng megacommit). 2000-09-26 17:48:55 +00:00
radix.c
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c
route.h
rtsock.c
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h