diff options
author | Ansis Atteka <aatteka@nicira.com> | 2012-11-09 20:11:31 -0500 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2012-11-12 15:31:37 -0500 |
commit | 9195bb8e381d81d5a315f911904cdf0cfcc919b8 (patch) | |
tree | f1abc3ff5c1356b423eb23d7ade698ad61d0f065 /include/net | |
parent | f8f626754ebeca613cf1af2e6f890cfde0e74d5b (diff) |
ipv6: improve ipv6_find_hdr() to skip empty routing headers
This patch prepares ipv6_find_hdr() function so that it could be
able to skip routing headers, where segements_left is 0. This is
required to handle multiple routing header case correctly when
changing IPv6 addresses.
Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ipv6.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index b2f0cfb0a381..acbd8e034310 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -631,8 +631,9 @@ extern int ipv6_skip_exthdr(const struct sk_buff *, int start, | |||
631 | extern bool ipv6_ext_hdr(u8 nexthdr); | 631 | extern bool ipv6_ext_hdr(u8 nexthdr); |
632 | 632 | ||
633 | enum { | 633 | enum { |
634 | IP6_FH_F_FRAG = (1 << 0), | 634 | IP6_FH_F_FRAG = (1 << 0), |
635 | IP6_FH_F_AUTH = (1 << 1), | 635 | IP6_FH_F_AUTH = (1 << 1), |
636 | IP6_FH_F_SKIP_RH = (1 << 2), | ||
636 | }; | 637 | }; |
637 | 638 | ||
638 | /* find specified header and get offset to it */ | 639 | /* find specified header and get offset to it */ |