freebsd-skq/sys/netipsec
Marko Zec 44e33a0758 Change the initialization methodology for global variables scheduled
for virtualization.

Instead of initializing the affected global variables at instatiation,
assign initial values to them in initializer functions.  As a rule,
initialization at instatiation for such variables should never be
introduced again from now on.  Furthermore, enclose all instantiations
of such global variables in #ifdef VIMAGE_GLOBALS blocks.

Essentialy, this change should have zero functional impact.  In the next
phase of merging network stack virtualization infrastructure from
p4/vimage branch, the new initialization methology will allow us to
switch between using global variables and their counterparts residing in
virtualization containers with minimum code churn, and in the long run
allow us to intialize multiple instances of such container structures.

Discussed at:	devsummit Strassburg
Reviewed by:	bz, julian
Approved by:	julian (mentor)
Obtained from:	//depot/projects/vimage-commit2/...
X-MFC after:	never
Sponsored by:	NLnet Foundation, The FreeBSD Foundation
2008-11-19 09:39:34 +00:00
..
ah_var.h
ah.h
esp_var.h
esp.h
ipcomp_var.h
ipcomp.h
ipip_var.h
ipsec6.h Document a few sysctls. While here, remove dead code 2008-07-20 17:51:58 +00:00
ipsec_input.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ipsec_mbuf.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ipsec_output.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ipsec.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ipsec.h Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
key_debug.c Fix bugs when allocating and passing information of current lifetime and 2008-03-02 17:12:28 +00:00
key_debug.h Commit step 1 of the vimage project, (network stack) 2008-08-17 23:27:27 +00:00
key_var.h First steps towards IPSec cleanup. 2006-03-25 13:38:52 +00:00
key.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
key.h
keydb.h First steps towards IPSec cleanup. 2006-03-25 13:38:52 +00:00
keysock.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
keysock.h Fix stack corruptions on amd64. 2006-01-21 10:44:34 +00:00
vipsec.h Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
xform_ah.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
xform_esp.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
xform_ipcomp.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
xform_ipip.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
xform_tcp.c Add ';' missed with the SYSINIT changes. 2008-03-21 18:31:42 +00:00
xform.h Add sysctls to if_enc(4) to control whether the firewalls or 2007-11-28 22:33:53 +00:00