|
@@ -63,6 +63,7 @@ int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb)
|
|
|
return err;
|
|
|
|
|
|
IPCB(skb)->flags |= IPSKB_XFRM_TUNNEL_SIZE;
|
|
|
+ skb->protocol = htons(ETH_P_IP);
|
|
|
|
|
|
return x->outer_mode->output2(x, skb);
|
|
|
}
|
|
@@ -71,7 +72,6 @@ EXPORT_SYMBOL(xfrm4_prepare_output);
|
|
|
int xfrm4_output_finish(struct sk_buff *skb)
|
|
|
{
|
|
|
memset(IPCB(skb), 0, sizeof(*IPCB(skb)));
|
|
|
- skb->protocol = htons(ETH_P_IP);
|
|
|
|
|
|
#ifdef CONFIG_NETFILTER
|
|
|
IPCB(skb)->flags |= IPSKB_XFRM_TRANSFORMED;
|