Commit 8bd17075 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPSEC] esp: Remove NAT-T checksum invalidation for BEET

I pointed this out back when this patch was first proposed but it looks like
it got lost along the way.

The checksum only needs to be ignored for NAT-T in transport mode where
we lose the original inner addresses due to NAT.  With BEET the inner
addresses will be intact so the checksum remains valid.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f24e3d65
...@@ -261,8 +261,7 @@ static int esp_input(struct xfrm_state *x, struct sk_buff *skb) ...@@ -261,8 +261,7 @@ static int esp_input(struct xfrm_state *x, struct sk_buff *skb)
* as per draft-ietf-ipsec-udp-encaps-06, * as per draft-ietf-ipsec-udp-encaps-06,
* section 3.1.2 * section 3.1.2
*/ */
if (x->props.mode == XFRM_MODE_TRANSPORT || if (x->props.mode == XFRM_MODE_TRANSPORT)
x->props.mode == XFRM_MODE_BEET)
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
} }
......
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