This patch set includes fixes to bring the segment routing implementation into conformance with the latest version of the draft (draft-ietf-6man-segment-routing-header-19). Also, segment routing receive function calls ip6_parse to properly parse TLVs in parsing loop.
Changes include: - Update TLV macro definitions. Mark obsoleted TLVs as such, add definitions for PAD1 and PADN - Mark obsoleted flags as such - Implement parsing loop in sr_has_hmac to find HMAC TLV without relying on obsoleted flag - Parameterize ip6_parse_tlv so that it can be used for parsing segment routing TLVs - Add sysctls for segment routing TLV parsing limits - Segment routing receive functions call ip6_parse_tlv Tom Herbert (5): seg6: Fix TLV definitions seg6: Obsolete unused SRH flags ipv6: Paramterize TLV parsing seg6: Add sysctl limits for segment routing header seg6: Leverage ip6_parse_tlv include/net/ipv6.h | 31 ++++++++++------- include/net/netns/ipv6.h | 2 ++ include/net/seg6.h | 5 +++ include/net/seg6_hmac.h | 2 +- include/uapi/linux/seg6.h | 54 +++++++++++++++++++++++------ net/ipv6/af_inet6.c | 2 ++ net/ipv6/exthdrs.c | 84 +++++++++++++++++++++++++++++++++++++++------- net/ipv6/seg6_hmac.c | 16 ++------- net/ipv6/seg6_local.c | 21 ++++++++---- net/ipv6/sysctl_net_ipv6.c | 16 +++++++++ 10 files changed, 176 insertions(+), 57 deletions(-) -- 2.7.4