Commit 285def0f authored by David S. Miller's avatar David S. Miller Committed by Sridhar Samudrala

[IPSEC]: Clear SKB checksum state when mangling.

parent 6a27f5ea
...@@ -280,6 +280,8 @@ int ah_input(struct xfrm_state *x, struct sk_buff *skb) ...@@ -280,6 +280,8 @@ int ah_input(struct xfrm_state *x, struct sk_buff *skb)
pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
goto out; goto out;
skb->ip_summed = CHECKSUM_NONE;
ah = (struct ip_auth_hdr*)skb->data; ah = (struct ip_auth_hdr*)skb->data;
iph = skb->nh.iph; iph = skb->nh.iph;
......
...@@ -481,6 +481,8 @@ int esp_input(struct xfrm_state *x, struct sk_buff *skb) ...@@ -481,6 +481,8 @@ int esp_input(struct xfrm_state *x, struct sk_buff *skb)
if ((nfrags = skb_cow_data(skb, 0, &trailer)) < 0) if ((nfrags = skb_cow_data(skb, 0, &trailer)) < 0)
goto out; goto out;
skb->ip_summed = CHECKSUM_NONE;
esph = (struct ip_esp_hdr*)skb->data; esph = (struct ip_esp_hdr*)skb->data;
iph = skb->nh.iph; iph = skb->nh.iph;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment