From a7e02fe7984a721ae1240c415ec7d1e73ccc5dbd Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Tue, 27 Feb 2018 11:04:14 +0100 Subject: src: Adding support for segment routing header 'srh' Segment Routing Header "SRH" is new type of IPv6 Routing extension header (type 4). SRH contains a list of segments (each is represented as an IPv6 address) to be visited by packets during the journey from source to destination. The SRH specification are defined in the below IETF SRH draft. https://tools.ietf.org/html/draft-ietf-6man-segment-routing-header-07 Signed-off-by: Ahmed Abdelsalam Signed-off-by: Pablo Neira Ayuso --- include/exthdr.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/exthdr.h') diff --git a/include/exthdr.h b/include/exthdr.h index 06bf6285..32f99c9c 100644 --- a/include/exthdr.h +++ b/include/exthdr.h @@ -57,6 +57,14 @@ enum rt2_hdr_fields { RT2HDR_ADDR, }; +enum rt4_hdr_fields { + RT4HDR_INVALID, + RT4HDR_LASTENT, + RT4HDR_FLAGS, + RT4HDR_TAG, + RT4HDR_SID_1, +}; + enum frag_hdr_fields { FRAGHDR_INVALID, FRAGHDR_NEXTHDR, @@ -87,6 +95,7 @@ extern const struct exthdr_desc exthdr_hbh; extern const struct exthdr_desc exthdr_rt; extern const struct exthdr_desc exthdr_rt0; extern const struct exthdr_desc exthdr_rt2; +extern const struct exthdr_desc exthdr_rt4; extern const struct exthdr_desc exthdr_frag; extern const struct exthdr_desc exthdr_dst; extern const struct exthdr_desc exthdr_mh; -- cgit v1.2.3