netns xfrm: per-netns xfrm_state_all list
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 26 Nov 2008 01:16:11 +0000 (17:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 01:16:11 +0000 (17:16 -0800)
commit9d4139c76905833afcb77fe8ccc17f302a0eb9ab
tree40cb6b05eeffd0478f6d767effaa5d346aa3df82
parent673c09be457bb23aa0eaaa79804cbb342210d195
netns xfrm: per-netns xfrm_state_all list

This is done to get
a) simple "something leaked" check
b) cover possible DoSes when other netns puts many, many xfrm_states
   onto a list.
c) not miss "alien xfrm_state" check in some of list iterators in future.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/xfrm.h
net/xfrm/xfrm_state.c