Make pfil(4) MPSAFE using following way:
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 14 Sep 2008 11:13:00 +0000 (11:13 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 14 Sep 2008 11:13:00 +0000 (11:13 +0000)
commitd66da3ad7f075fde1da4d78f84a9504d71cd66c9
treed88649feaa014473a85085f8e633d971a50e013c
parentf0fad8e16c9d856cb75a71d18b5997b8db5510a2
Make pfil(4) MPSAFE using following way:
- The pfil hook lists alteration is serialized by netisr0 (rev 1.10)
- Duplicate the pfil hook lists to be altered.
- Alter the pfil hook lists' duplication
- Save the original pfil hook lists, install the altered pfil hook lists
- Sync all network msgports to make sure that no one sees the original
  lists after this syncing
- Free the original pfil hook lists
sys/net/pfil.c
sys/net/pfil.h