diff options
author | Masahide NAKAMURA <nakam@linux-ipv6.org> | 2007-10-22 05:30:15 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-22 05:59:58 -0400 |
commit | ea2c47b42f12dadbad9d879fb6df102b9003ab82 (patch) | |
tree | d342475622a30d55c7ebe25e4663d3b688108fde /net | |
parent | e3fa259bcbbca25c8e8275c8dcedcf484854465b (diff) |
[IPSEC] IPV6: Fix to add tunnel mode SA correctly.
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ah6.c | 1 | ||||
-rw-r--r-- | net/ipv6/esp6.c | 1 |
2 files changed, 2 insertions, 0 deletions
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) | |||
483 | break; | 483 | break; |
484 | case XFRM_MODE_TUNNEL: | 484 | case XFRM_MODE_TUNNEL: |
485 | x->props.header_len += sizeof(struct ipv6hdr); | 485 | x->props.header_len += sizeof(struct ipv6hdr); |
486 | break; | ||
486 | default: | 487 | default: |
487 | goto error; | 488 | goto error; |
488 | } | 489 | } |
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) | |||
360 | break; | 360 | break; |
361 | case XFRM_MODE_TUNNEL: | 361 | case XFRM_MODE_TUNNEL: |
362 | x->props.header_len += sizeof(struct ipv6hdr); | 362 | x->props.header_len += sizeof(struct ipv6hdr); |
363 | break; | ||
363 | default: | 364 | default: |
364 | goto error; | 365 | goto error; |
365 | } | 366 | } |