-
- Downloads
[IPSEC]: Use IPv6 calling convention as the convention for x->mode->output
The IPv6 calling convention for x->mode->output is more general and could help an eventual protocol-generic x->type->output implementation. This patch adopts it for IPv4 as well and modifies the IPv4 type output functions accordingly. It also rewrites the IPv6 mac/transport header calculation to be based off the network header where practical. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/xfrm.h 12 additions, 0 deletionsinclude/net/xfrm.h
- net/ipv4/ah4.c 3 additions, 3 deletionsnet/ipv4/ah4.c
- net/ipv4/esp4.c 5 additions, 6 deletionsnet/ipv4/esp4.c
- net/ipv4/ipcomp.c 5 additions, 5 deletionsnet/ipv4/ipcomp.c
- net/ipv4/xfrm4_mode_beet.c 7 additions, 10 deletionsnet/ipv4/xfrm4_mode_beet.c
- net/ipv4/xfrm4_mode_transport.c 3 additions, 4 deletionsnet/ipv4/xfrm4_mode_transport.c
- net/ipv4/xfrm4_mode_tunnel.c 3 additions, 4 deletionsnet/ipv4/xfrm4_mode_tunnel.c
- net/ipv6/xfrm6_mode_beet.c 1 addition, 8 deletionsnet/ipv6/xfrm6_mode_beet.c
- net/ipv6/xfrm6_mode_ro.c 1 addition, 8 deletionsnet/ipv6/xfrm6_mode_ro.c
- net/ipv6/xfrm6_mode_transport.c 1 addition, 8 deletionsnet/ipv6/xfrm6_mode_transport.c
- net/ipv6/xfrm6_mode_tunnel.c 3 additions, 11 deletionsnet/ipv6/xfrm6_mode_tunnel.c
Please register or sign in to comment