[IPSEC]: output mode to take an xfrm state as input param
Expose IPSEC modes output path to take an xfrm state as input param. This makes it consistent with the input mode processing (which already takes the xfrm state as a param). Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fda9ef5d67
commit
eb878e8457
@@ -21,9 +21,8 @@
|
||||
* On exit, skb->h will be set to the start of the payload to be processed
|
||||
* by x->type->output and skb->nh will be set to the top IP header.
|
||||
*/
|
||||
static int xfrm4_transport_output(struct sk_buff *skb)
|
||||
static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb)
|
||||
{
|
||||
struct xfrm_state *x;
|
||||
struct iphdr *iph;
|
||||
int ihl;
|
||||
|
||||
@@ -33,7 +32,6 @@ static int xfrm4_transport_output(struct sk_buff *skb)
|
||||
ihl = iph->ihl * 4;
|
||||
skb->h.raw += ihl;
|
||||
|
||||
x = skb->dst->xfrm;
|
||||
skb->nh.raw = memmove(skb_push(skb, x->props.header_len), iph, ihl);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user