]> err.no Git - linux-2.6/commit
[IPSEC]: Move common output code to xfrm_output
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Oct 2007 00:16:30 +0000 (17:16 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:53 +0000 (16:54 -0700)
commit406ef77c893ebd882209be4e393d64b01fe72054
tree815d753889769b355fba7e648abef7ad1422559e
parentbc31d3b2c7d7f2a03721a05cb3c9a3ce8b1e2e5a
[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>
include/net/xfrm.h
net/ipv4/xfrm4_output.c
net/ipv6/xfrm6_output.c
net/xfrm/Makefile
net/xfrm/xfrm_output.c [new file with mode: 0644]