udp: pcb list/hashtable protection stage 2/2
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 23 Dec 2010 08:03:08 +0000 (16:03 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 31 Jan 2011 01:46:06 +0000 (09:46 +0800)
commit5a38e392fc0cc6547f5e5a03a5fb1024ef576f54
tree3d85a1e5a992eda3c359ad177ac1ee88d80b453d
parent8577c290465e97f070d6a4e02e7e9321a8364701
udp: pcb list/hashtable protection stage 2/2

- Use serializer to protect pcb list/hashtable iteration not running
  in netisrs.
- Don't use marker pcb, so except for the functions running in netisr0,
  no other functions will alter pcb list.
sys/netinet/in.c
sys/netinet/udp_usrreq.c
sys/netinet/udp_var.h
sys/netinet6/in6_ifattach.c
sys/netinet6/udp6_usrreq.c