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: v2.6.24-rc1~62^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea2c47b42f12dadbad9d879fb6df102b9003ab82;p=platform%2Fkernel%2Flinux-3.10.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 67cd066..66a9139 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 b071543..72a6598 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; }