[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>
Showing
- include/linux/xfrm.h 4 additions, 0 deletionsinclude/linux/xfrm.h
- include/net/xfrm.h 17 additions, 0 deletionsinclude/net/xfrm.h
- net/ipv4/Kconfig 18 additions, 0 deletionsnet/ipv4/Kconfig
- net/ipv4/Makefile 2 additions, 0 deletionsnet/ipv4/Makefile
- net/ipv4/xfrm4_input.c 2 additions, 26 deletionsnet/ipv4/xfrm4_input.c
- net/ipv4/xfrm4_mode_transport.c 69 additions, 0 deletionsnet/ipv4/xfrm4_mode_transport.c
- net/ipv4/xfrm4_mode_tunnel.c 125 additions, 0 deletionsnet/ipv4/xfrm4_mode_tunnel.c
- net/ipv4/xfrm4_output.c 3 additions, 58 deletionsnet/ipv4/xfrm4_output.c
- net/ipv6/Kconfig 20 additions, 0 deletionsnet/ipv6/Kconfig
- net/ipv6/Makefile 2 additions, 0 deletionsnet/ipv6/Makefile
- net/ipv6/ip6_output.c 2 additions, 0 deletionsnet/ipv6/ip6_output.c
- net/ipv6/xfrm6_input.c 3 additions, 26 deletionsnet/ipv6/xfrm6_input.c
- net/ipv6/xfrm6_mode_transport.c 73 additions, 0 deletionsnet/ipv6/xfrm6_mode_transport.c
- net/ipv6/xfrm6_mode_tunnel.c 121 additions, 0 deletionsnet/ipv6/xfrm6_mode_tunnel.c
- net/ipv6/xfrm6_output.c 3 additions, 60 deletionsnet/ipv6/xfrm6_output.c
- net/xfrm/xfrm_policy.c 83 additions, 0 deletionsnet/xfrm/xfrm_policy.c
- net/xfrm/xfrm_state.c 6 additions, 0 deletionsnet/xfrm/xfrm_state.c
Loading
Please register or sign in to comment