freebsd-nq/sys/netinet
Robert Watson bdae44a844 Lock down global variables in if_gre:
- Add gre_mtx to protect global softc list.
- Hold gre_mtx over various list operations (insert, delete).
- Centralize if_gre interface teardown in gre_destroy(), and call this
  from modevent unload and gre_clone_destroy().
- Export gre_mtx to ip_gre.c, which walks the gre list to look up gre
  interfaces during encapsulation.  Add a wonking comment on how we need
  some sort of drain/reference count mechanism to keep gre references
  alive while in use and simultaneous destroy.

This commit does not lockdown softc data, which follows in a future
commit.
2004-03-22 16:04:43 +00:00
..
libalias Run through indent(1) so I can read the code without getting a headache. 2004-03-16 21:30:41 +00:00
accf_data.c
accf_http.c
icmp6.h
icmp_var.h Tweak existing header and other build infrastructure to be able to build 2004-02-26 03:53:54 +00:00
if_atm.c
if_atm.h
if_ether.c - Fix indentation lost by 'diff -b'. 2004-03-21 18:51:26 +00:00
if_ether.h
igmp_var.h
igmp.c
igmp.h
in_cksum.c
in_gif.c
in_gif.h
in_pcb.c Scrub unused variable zeroin_addr. 2004-03-10 01:01:04 +00:00
in_pcb.h
in_proto.c Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
in_rmx.c
in_systm.h
in_var.h Scrub unused variable zeroin_addr. 2004-03-10 01:01:04 +00:00
in.c Bring eventhandler callbacks for pf. 2004-02-26 04:27:55 +00:00
in.h
ip6.h
ip_divert.c Split the mlock() kernel code into two parts, mlock(), which unpacks 2004-02-26 00:27:04 +00:00
ip_divert.h Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
ip_dummynet.c Add some missing DUMMYNET_UNLOCK() in config_pipe(). 2004-03-03 01:33:22 +00:00
ip_dummynet.h Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
ip_ecn.c
ip_ecn.h
ip_encap.c Lock down IP-layer encapsulation library: 2004-03-10 02:48:50 +00:00
ip_encap.h
ip_fastfwd.c Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
ip_fw2.c Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
ip_fw.h Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
ip_gre.c Lock down global variables in if_gre: 2004-03-22 16:04:43 +00:00
ip_gre.h
ip_icmp.c Tweak existing header and other build infrastructure to be able to build 2004-02-26 03:53:54 +00:00
ip_icmp.h Tweak existing header and other build infrastructure to be able to build 2004-02-26 03:53:54 +00:00
ip_id.c Tweak existing header and other build infrastructure to be able to build 2004-02-26 03:53:54 +00:00
ip_input.c Rename NET_PICKUP_GIANT() to NET_LOCK_GIANT(), and NET_DROP_GIANT() 2004-03-01 22:37:01 +00:00
ip_mroute.c To comply with the spec, do not copy the TOS from the outer IP 2004-03-08 07:47:27 +00:00
ip_mroute.h
ip_output.c Two minor follow-ups on the MT_TAG removal: 2004-03-02 14:37:23 +00:00
ip_var.h Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
ip.h Spell types consistently throughout this file. Do not use the __packed attribute, as we are often #include'd from userland without <sys/cdefs.h> in front of us, and it is not strictly necessary. 2004-02-16 14:40:56 +00:00
ipprotosw.h
pim_var.h
pim.h Include <sys/types.h> for autoconf/automake detection. 2004-03-08 07:45:32 +00:00
raw_ip.c IPSEC and FAST_IPSEC have the same internal API now; 2004-02-17 14:02:37 +00:00
tcp_debug.c Re-remove MT_TAGs. The problems with dummynet have been fixed now. 2004-02-25 19:55:29 +00:00
tcp_debug.h
tcp_fsm.h
tcp_hostcache.c
tcp_input.c fix -O0 compilation without INET6. 2004-03-01 19:10:31 +00:00
tcp_output.c Brucification. 2004-02-13 18:21:45 +00:00
tcp_reass.c fix -O0 compilation without INET6. 2004-03-01 19:10:31 +00:00
tcp_seq.h
tcp_subr.c Remove now unneeded arguments to tcp_twrespond() -- so and msrc. These 2004-02-28 15:12:20 +00:00
tcp_syncache.c Final brucification pass. Spell types consistently (u_int). Remove bogus 2004-02-14 21:49:48 +00:00
tcp_timer.c
tcp_timer.h
tcp_timewait.c Remove now unneeded arguments to tcp_twrespond() -- so and msrc. These 2004-02-28 15:12:20 +00:00
tcp_usrreq.c Shorten the name of the socket option used to enable TCP-MD5 packet 2004-02-16 22:21:16 +00:00
tcp_var.h Remove now unneeded arguments to tcp_twrespond() -- so and msrc. These 2004-02-28 15:12:20 +00:00
tcp.h Shorten the name of the socket option used to enable TCP-MD5 packet 2004-02-16 22:21:16 +00:00
tcpip.h
udp_usrreq.c Split the mlock() kernel code into two parts, mlock(), which unpacks 2004-02-26 00:27:04 +00:00
udp_var.h
udp.h