[IPSEC]: Move common output code to xfrm_output
Most of the code in xfrm4_output_one and xfrm6_output_one are identical so this patch moves them into a common xfrm_output function which will live in net/xfrm. In fact this would seem to fix a bug as on IPv4 we never reset the network header after a transform which may upset netfilter later on. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/xfrm.h 1 addition, 0 deletionsinclude/net/xfrm.h
- net/ipv4/xfrm4_output.c 4 additions, 36 deletionsnet/ipv4/xfrm4_output.c
- net/ipv6/xfrm6_output.c 5 additions, 40 deletionsnet/ipv6/xfrm6_output.c
- net/xfrm/Makefile 1 addition, 1 deletionnet/xfrm/Makefile
- net/xfrm/xfrm_output.c 73 additions, 0 deletionsnet/xfrm/xfrm_output.c
Loading
Please register or sign in to comment