linux/net/xfrm
Herbert Xu 658b219e93 [IPSEC]: Move common code into xfrm_alloc_spi
This patch moves some common code that conceptually belongs to the xfrm core
from af_key/xfrm_user into xfrm_alloc_spi.

In particular, the spin lock on the state is now taken inside xfrm_alloc_spi.
Previously it also protected the construction of the response PF_KEY/XFRM
messages to user-space.  This is inconsistent as other identical constructions
are not protected by the state lock.  This is bad because they in fact should
be protected but only in certain spots (so as not to hold the lock for too
long which may cause packet drops).

The SPI byte order conversion has also been moved.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-10-10 16:55:01 -07:00
..
Kconfig [PFKEYV2]: CONFIG_NET_KEY_MIGRATE option 2007-02-08 13:15:05 -08:00
Makefile [IPSEC]: Move common output code to xfrm_output 2007-10-10 16:54:53 -07:00
xfrm_algo.c [IPSEC]: Fix warnings with casting int to pointer 2007-05-22 16:12:26 -07:00
xfrm_hash.c [IPSEC]: Don't warn if high-order hash resize fails 2007-05-14 02:19:11 -07:00
xfrm_hash.h [XFRM] STATE: Use destination address for src hash. 2006-10-04 00:31:02 -07:00
xfrm_input.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
xfrm_output.c [IPSEC]: Store IPv6 nh pointer in mac_header on output 2007-10-10 16:55:00 -07:00
xfrm_policy.c [IPSEC]: Remove bogus ref count in xfrm_secpath_reject 2007-10-10 16:54:59 -07:00
xfrm_state.c [IPSEC]: Move common code into xfrm_alloc_spi 2007-10-10 16:55:01 -07:00
xfrm_user.c [IPSEC]: Move common code into xfrm_alloc_spi 2007-10-10 16:55:01 -07:00