From: Masahide NAKAMURA Date: Mon, 22 Oct 2007 09:30:15 +0000 (-0700) Subject: [IPSEC] IPV6: Fix to add tunnel mode SA correctly. X-Git-Tag: firefly_0821_release~24678^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea2c47b42f12dadbad9d879fb6df102b9003ab82;p=firefly-linux-kernel-4.4.55.git [IPSEC] IPV6: Fix to add tunnel mode SA correctly. Signed-off-by: Masahide NAKAMURA Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 67cd06613a25..66a9139d46e9 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c @@ -483,6 +483,7 @@ static int ah6_init_state(struct xfrm_state *x) break; case XFRM_MODE_TUNNEL: x->props.header_len += sizeof(struct ipv6hdr); + break; default: goto error; } diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index b0715432e454..72a659806cad 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -360,6 +360,7 @@ static int esp6_init_state(struct xfrm_state *x) break; case XFRM_MODE_TUNNEL: x->props.header_len += sizeof(struct ipv6hdr); + break; default: goto error; }