[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: NHerbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
net/ipv4/xfrm4_mode_transport.c
0 → 100644
net/ipv4/xfrm4_mode_tunnel.c
0 → 100644
net/ipv6/xfrm6_mode_transport.c
0 → 100644
net/ipv6/xfrm6_mode_tunnel.c
0 → 100644
想要评论请 注册 或 登录