diff options
author | Masahide NAKAMURA <nakam@linux-ipv6.org> | 2006-08-23 20:57:28 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:06:36 -0400 |
commit | aee5adb4307c4c63a4dc5f3b49984d76f8a71b5b (patch) | |
tree | b2daac197259c535d66749617ede6f8479b355a4 /net/ipv6/esp6.c | |
parent | eb2971b68a7d17a7d0fa2c7fc6fbc4bfe41cd694 (diff) |
[XFRM] STATE: Add a hook to find offset to be inserted header in outbound.
On current kernel, ip6_find_1stfragopt() is used by IPv6 IPsec to find
offset to be inserted header in outbound for transport mode. (BTW, no
usage may be needed for IPv4 case.) Mobile IPv6 requires another
logic for routing header and destination options header
respectively. This patch is common platform for the offset and adopts
it to IPsec.
Based on MIPL2 kernel patch.
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/esp6.c')
-rw-r--r-- | net/ipv6/esp6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 2b8e52e1d0ab..ae50b9511151 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c | |||
@@ -379,7 +379,8 @@ static struct xfrm_type esp6_type = | |||
379 | .destructor = esp6_destroy, | 379 | .destructor = esp6_destroy, |
380 | .get_max_size = esp6_get_max_size, | 380 | .get_max_size = esp6_get_max_size, |
381 | .input = esp6_input, | 381 | .input = esp6_input, |
382 | .output = esp6_output | 382 | .output = esp6_output, |
383 | .hdr_offset = xfrm6_find_1stfragopt, | ||
383 | }; | 384 | }; |
384 | 385 | ||
385 | static struct inet6_protocol esp6_protocol = { | 386 | static struct inet6_protocol esp6_protocol = { |