1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/sys/net
Bjoern A. Zeeb 42eedeac00 Split eventhandler_register() into an internal part and a wrapper function
that provides the allocated and setup eventhandler entry.

Add a new wrapper for VIMAGE that allocates extra space to hold the
callback function and argument in addition to an extra wrapper function.
While the wrapper function goes as normal callback function the
argument points to the extra space allocated holding the original func
and arg that the wrapper function can then call.

Provide an iterator function for the virtual network stack (vnet) that
will call the callback function for each network stack.

Provide a new set of macros for VNET that in the non-VIMAGE case will
just call eventhandler_register() while in the VIMAGE case it will use
vimage_eventhandler_register() passing in the extra iterator function
but will only register once rather than per-vnet.
We need a special macro in case we are interested in the tag returned
as we must check for curvnet and can neither simply assign the
return value, nor not change it in the non-vnet0 case without that.

Sponsored by:	ISPsystem
Discussed with:	jhb
Reviewed by:	zec (earlier version), jhb
MFC after:	1 month
2010-03-19 19:51:03 +00:00
..
bpf_buffer.c
bpf_buffer.h
bpf_filter.c
bpf_jitter.c General style cleanup, no functional change. 2009-11-20 21:12:40 +00:00
bpf_jitter.h - Allocate scratch memory on stack instead of pre-allocating it with 2009-11-20 18:49:20 +00:00
bpf_zerocopy.c
bpf_zerocopy.h
bpf.c Fix a style(9) nit. 2010-03-12 19:42:42 +00:00
bpf.h
bpfdesc.h
bridgestp.c
bridgestp.h
ethernet.h
fddi.h
firewire.h
flowtable.c flowtable_get_hashkey is only used by a DDB function - move under #ifdef DDB 2010-03-12 19:58:51 +00:00
flowtable.h - restructure flowtable to support ipv6 2010-03-12 05:03:26 +00:00
ieee8023ad_lacp.c
ieee8023ad_lacp.h
if_arc.h
if_arcsubr.c
if_arp.h
if_atm.h
if_atmsubr.c
if_bridge.c Bring in the most recent version of ipfw and dummynet, developed 2010-03-02 17:40:48 +00:00
if_bridgevar.h
if_clone.c
if_clone.h
if_dead.c Remove if_timer/if_watchdog now that they are no longer used. The space 2009-11-30 21:25:57 +00:00
if_disc.c
if_dl.h
if_edsc.c
if_ef.c
if_enc.c
if_enc.h
if_epair.c Rework reference counting in case we queue into the netisr, 2010-03-06 21:22:28 +00:00
if_ethersubr.c Bring in the most recent version of ipfw and dummynet, developed 2010-03-02 17:40:48 +00:00
if_faith.c
if_fddisubr.c
if_fwsubr.c
if_gif.c
if_gif.h
if_gre.c The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:05:46 +00:00
if_gre.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 17:05:46 +00:00
if_iso88025subr.c
if_lagg.c Remove the check for IFF_DRV_OACTIVE right before adding a port into lagg 2010-03-09 00:52:16 +00:00
if_lagg.h Propagate the vlan eventis to the underlying interfaces/members so they can do initialization of hw related features. 2010-02-06 13:49:35 +00:00
if_llatbl.c Add ddb support to the "new" link layer code ("new-arp"): 2010-03-18 09:09:59 +00:00
if_llatbl.h - restructure flowtable to support ipv6 2010-03-12 05:03:26 +00:00
if_llc.h
if_loop.c ifconfig(8) expects interface fooX to be supported by the module if_foo, 2010-02-21 15:25:47 +00:00
if_media.c
if_media.h
if_mib.c
if_mib.h
if_sppp.h
if_spppfr.c
if_spppsubr.c
if_stf.c
if_stf.h
if_tap.c Verify interface up status using its link state only 2010-03-16 17:59:12 +00:00
if_tap.h
if_tapvar.h
if_tun.c Verify interface up status using its link state only 2010-03-16 17:59:12 +00:00
if_tun.h
if_types.h
if_var.h Fix a small bug in drbr_dequeue_cond spotted while preparing MFC of r203834. 2010-03-15 21:15:03 +00:00
if_vlan_var.h
if_vlan.c Add __FBSDID. 2010-02-21 00:07:45 +00:00
if.c Use the DB_SHOW_ALL_COMMAND() macro to register the formerly 'show ifnets' 2010-02-24 15:54:24 +00:00
if.h Verify interface up status using its link state only 2010-03-16 17:59:12 +00:00
iso88025.h
netisr_internal.h Changes to support crashdump analysis of netisr: 2010-03-01 00:42:36 +00:00
netisr.c Changes to support crashdump analysis of netisr: 2010-03-01 00:42:36 +00:00
netisr.h Whitespace tweak. 2010-03-01 00:43:05 +00:00
pfil.c
pfil.h
pfkeyv2.h
ppp_defs.h
radix_mpath.c One of the advantages of enabling ECMP (a.k.a RADIX_MPATH) is to 2010-03-09 01:11:45 +00:00
radix_mpath.h
radix.c One of the advantages of enabling ECMP (a.k.a RADIX_MPATH) is to 2010-03-09 01:11:45 +00:00
radix.h Not only flush the ipfw tables when unloading ipfw or tearing 2010-03-07 15:37:58 +00:00
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c One of the advantages of enabling ECMP (a.k.a RADIX_MPATH) is to 2010-03-09 01:11:45 +00:00
route.h Verify interface up status using its link state only 2010-03-16 17:59:12 +00:00
rtsock.c The proxy arp entries could not be added into the system over the 2009-12-30 21:35:34 +00:00
slcompress.c
slcompress.h
vnet.c Split eventhandler_register() into an internal part and a wrapper function 2010-03-19 19:51:03 +00:00
vnet.h Split eventhandler_register() into an internal part and a wrapper function 2010-03-19 19:51:03 +00:00
zlib.c
zlib.h Merge projects/enhanced_coredumps (r204346) into HEAD: 2010-03-02 06:58:58 +00:00
zutil.h Merge projects/enhanced_coredumps (r204346) into HEAD: 2010-03-02 06:58:58 +00:00