[IPSEC] xfrm: Abstract out encapsulation modes
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 28 May 2006 06:05:54 +0000 (23:05 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:28:39 +0000 (21:28 -0700)
commitb59f45d0b2878ab76f8053b0973654e6621828ee
tree40dc5e2ede2620f7935fb3dae0d0eb199851f611
parent546be2405be119ef55467aace45f337a16e5d424
[IPSEC] xfrm: Abstract out encapsulation modes

This patch adds the structure xfrm_mode.  It is meant to represent
the operations carried out by transport/tunnel modes.

By doing this we allow additional encapsulation modes to be added
without clogging up the xfrm_input/xfrm_output paths.

Candidate modes include 4-to-6 tunnel mode, 6-to-4 tunnel mode, and
BEET modes.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 files changed:
include/linux/xfrm.h
include/net/xfrm.h
net/ipv4/Kconfig
net/ipv4/Makefile
net/ipv4/xfrm4_input.c
net/ipv4/xfrm4_mode_transport.c [new file with mode: 0644]
net/ipv4/xfrm4_mode_tunnel.c [new file with mode: 0644]
net/ipv4/xfrm4_output.c
net/ipv6/Kconfig
net/ipv6/Makefile
net/ipv6/ip6_output.c
net/ipv6/xfrm6_input.c
net/ipv6/xfrm6_mode_transport.c [new file with mode: 0644]
net/ipv6/xfrm6_mode_tunnel.c [new file with mode: 0644]
net/ipv6/xfrm6_output.c
net/xfrm/xfrm_policy.c
net/xfrm/xfrm_state.c