freebsd-nq/sys/netinet6
Stephan Uphoff d915b28015 Fix race conditions on enumerating pcb lists by moving the initialization
( and where appropriate the destruction) of the pcb mutex to the init/finit
functions of the pcb zones.
This allows locking of the pcb entries and race condition free comparison
of the generation count.
Rearrange locking a bit to avoid extra locking operation to update the generation
count in in_pcballoc(). (in_pcballoc now returns the pcb locked)

I am planning to convert pcb list handling from a type safe to a reference count
model soon. ( As this allows really freeing the PCBs)

Reviewed by:	rwatson@, mohans@
MFC after:	1 week
2006-07-18 22:34:27 +00:00
..
ah6.h
ah_aesxcbcmac.c Correct a buffer overflow which can occur when decompressing a 2005-07-27 08:41:17 +00:00
ah_aesxcbcmac.h
ah_core.c scope cleanup. with this change 2005-07-25 12:31:43 +00:00
ah_input.c
ah_output.c
ah.h
dest6.c
esp6.h
esp_aesctr.c AES counter mode uses 8byte IV, not 16 bytes. 2005-10-12 09:13:48 +00:00
esp_aesctr.h
esp_core.c
esp_input.c
esp_output.c
esp_rijndael.c
esp_rijndael.h
esp.h
frag6.c Assert ip6_forward_rt protected by Giant adding GIANT_REQUIRED to 2006-05-04 18:41:08 +00:00
icmp6.c sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
icmp6.h
in6_cksum.c We needn't check "m" for NULL here because "off" should be within 2006-06-30 18:25:07 +00:00
in6_gif.c shut up strict-aliasing rules warning. 2006-02-05 09:52:40 +00:00
in6_gif.h
in6_ifattach.c Modify in6_pcbpurgeif0() to accept a pcbinfo structure rather than a pcb 2006-04-23 15:06:16 +00:00
in6_ifattach.h sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
in6_pcb.c Fix race conditions on enumerating pcb lists by moving the initialization 2006-07-18 22:34:27 +00:00
in6_pcb.h Modify in6_pcbpurgeif0() to accept a pcbinfo structure rather than a pcb 2006-04-23 15:06:16 +00:00
in6_proto.c Use sparse initializers for "struct domain" and "struct protosw", 2005-11-09 13:29:16 +00:00
in6_rmx.c Complete timebase (time_second -> time_uptime) conversion. 2006-07-05 23:37:21 +00:00
in6_src.c Avoid spurious release of an rtentry. 2006-05-23 00:32:22 +00:00
in6_var.h There is a consensus that ifaddr.ifa_addr should never be NULL, 2006-06-29 19:22:05 +00:00
in6.c There is a consensus that ifaddr.ifa_addr should never be NULL, 2006-06-29 19:22:05 +00:00
in6.h This comment on various IPPORT_ defines was copied from in.h and 2006-03-28 12:51:22 +00:00
ip6_ecn.h
ip6_forward.c Remove ip6fw. Since ipfw has full functional IPv6 support now and - in 2006-05-12 20:39:23 +00:00
ip6_id.c
ip6_input.c Remove ip6fw. Since ipfw has full functional IPv6 support now and - in 2006-05-12 20:39:23 +00:00
ip6_mroute.c ip6_mrouter_done(): use if_allmulti(0) for disabling the multicast promiscuous mode 2006-04-10 14:33:22 +00:00
ip6_mroute.h
ip6_output.c Remove ip6fw. Since ipfw has full functional IPv6 support now and - in 2006-05-12 20:39:23 +00:00
ip6_var.h sync with KAME (renamed a macro IPV6_DADOUTPUT to IPV6_UNSPECSRC) 2005-10-21 15:45:13 +00:00
ip6.h
ip6protosw.h
ipcomp6.h
ipcomp_core.c
ipcomp_input.c In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm' 2006-01-13 23:53:23 +00:00
ipcomp_output.c
ipcomp.h
ipsec6.h
ipsec.c - Use suser_cred(9) instead of directly comparing cr_uid. 2006-06-27 11:40:05 +00:00
ipsec.h
mld6_var.h sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
mld6.c fixed a bug that an MLD report is not advertised when group-specific MLD query is received. 2006-03-04 09:17:11 +00:00
nd6_nbr.c the response NS to a DAD NS was not sent correctly due to the 2005-12-08 06:43:39 +00:00
nd6_rtr.c implements section 2.2 of RFC4191, regarding the reserved preference value (10) 2006-03-19 06:38:39 +00:00
nd6.c Fix spurious warnings from neighbor discovery when working with IPv6 over 2006-06-08 00:31:17 +00:00
nd6.h sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
pim6_var.h Remove public declarations of variables that were forgotten when they were 2005-08-10 07:10:02 +00:00
pim6.h
raw_ip6.c Fix race conditions on enumerating pcb lists by moving the initialization 2006-07-18 22:34:27 +00:00
raw_ip6.h
README nuked non-existing commands 2005-10-21 16:31:39 +00:00
route6.c scope cleanup. with this change 2005-07-25 12:31:43 +00:00
scope6_var.h scope cleanup. with this change 2005-07-25 12:31:43 +00:00
scope6.c oops, make it compilable. i need sleep. X-( 2005-07-25 17:28:39 +00:00
tcp6_var.h
udp6_output.c Assert the inpcb lock in udp6_output(), as we dereference various 2006-04-12 03:34:22 +00:00
udp6_usrreq.c Fix race conditions on enumerating pcb lists by moving the initialization 2006-07-18 22:34:27 +00:00
udp6_var.h

a note to committers about KAME tree
$FreeBSD$
KAME project


FreeBSD IPv6/IPsec tree is from KAMEproject (http://www.kame.net/).
To synchronize KAME tree and FreeBSD better today and in the future,
please understand the following:

- DO NOT MAKE COSTMETIC CHANGES.
  "Cosmetic changes" here includes tabify, untabify, removal of space at EOL,
  minor KNF items, and whatever adds more output lines on "diff freebsd kame".
  To make future synchronization easier. it is critical to preserve certain
  statements in the code.  Also, as KAME tree supports all 4 BSDs (Free, Open,
  Net, BSD/OS) in single shared tree, it is not always possible to backport
  FreeBSD changes into KAME tree.  So again, please do not make cosmetic
  changes.  Even if you think it a right thing, that will bite KAME guys badly
  during upgrade attempts, and prevent us from synchronizing two trees.
  (you don't usually make cosmetic changes against third-party code, do you?)

- REPORT CHANGES/BUGS TO KAME GUYS.
  It is not always possible for KAME guys to watch all the freebsd mailing
  list traffic, as the traffic is HUGE.  So if possible, please, inform
  kame guys of changes you made in IPv6/IPsec related portion.  Contact
  path would be snap-users@kame.net or KAME PR database on www.kame.net.
  (or to core@kame.net if it is necessary to make it confidential)

Thank you for your cooperation and have a happy IPv6 life!


Note: KAME-origin code is in the following locations.
The above notice applies to corresponding manpages too.
The list may not be complete.  If you see $KAME$ in the code, it is from
KAME distribution.  If you see some file that is IPv6/IPsec related, it is
highly possible that the file is from KAME distribution.

include/ifaddrs.h
lib/libc/net
lib/libc/net/getaddrinfo.c
lib/libc/net/getifaddrs.c
lib/libc/net/getnameinfo.c
lib/libc/net/ifname.c
lib/libc/net/ip6opt.c
lib/libc/net/map_v4v6.c
lib/libc/net/name6.c
lib/libftpio
lib/libipsec
sbin/ip6fw
sbin/ping6
sbin/rtsol
share/doc/IPv6
share/man/man4/ip6.4
share/man/man4/inet6.4
sys/crypto (except sys/crypto/rc4)
sys/kern/uipc_mbuf2.c
sys/net/if_faith.[ch]
sys/net/if_gif.[ch]
sys/net/if_stf.[ch]
sys/net/pfkeyv2.h
sys/netinet/icmp6.h
sys/netinet/in_gif.[ch]
sys/netinet/ip6.h
sys/netinet/ip_encap.[ch]
sys/netinet6
sys/netkey
usr.sbin/faithd
usr.sbin/ifmcstat
usr.sbin/mld6query
usr.sbin/ndp
usr.sbin/rip6query
usr.sbin/route6d
usr.sbin/rrenumd
usr.sbin/rtadvd
usr.sbin/rtsold
usr.sbin/setkey
usr.sbin/traceroute6