freebsd-dev/sys/netinet6
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
..
dest6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
frag6.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
icmp6.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
icmp6.h
in6_cksum.c Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6_gif.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
in6_gif.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6_ifattach.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in6_ifattach.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6_pcb.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
in6_pcb.h Pass the ucred along into in{,6}_pcblookup_local for upcoming 2008-07-10 13:31:11 +00:00
in6_proto.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in6_rmx.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in6_src.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
in6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6.c Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
in6.h Default to ignoring potentially evil IPv6 Neighbor Solicitation 2008-10-02 00:32:59 +00:00
ip6_ecn.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
ip6_forward.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip6_id.c Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
ip6_input.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip6_ipsec.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip6_ipsec.h #if 0 out a currently unsued (and incomplete) function: ip6_ipsec_mtu(). 2008-03-14 11:44:30 +00:00
ip6_mroute.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
ip6_mroute.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
ip6_output.c Check that the mbuf len is positive (like we do in the v4 case). 2008-10-15 19:24:18 +00:00
ip6_var.h Add a MAC label, MAC Framework, and MAC policy entry points for IPv6 2008-10-26 22:45:18 +00:00
ip6.h
ip6protosw.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
mld6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
mld6.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
nd6_nbr.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
nd6_rtr.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
nd6.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
nd6.h Default to ignoring potentially evil IPv6 Neighbor Solicitation 2008-10-02 00:32:59 +00:00
pim6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
pim6.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
raw_ip6.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
raw_ip6.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
route6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
scope6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
scope6.c Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00
sctp6_usrreq.c 1) Adds the rest of the VIMAGE change macros 2008-07-09 16:45:30 +00:00
sctp6_var.h 1) Adds the rest of the VIMAGE change macros 2008-07-09 16:45:30 +00:00
tcp6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
udp6_usrreq.c When disconnecting a UDPv6 socket, acquire the socket lock around the 2008-10-12 20:01:32 +00:00
udp6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
vinet6.h Change the initialization methodology for global variables scheduled 2008-11-19 09:39:34 +00:00