Skip to content

Commit 6ab6a0d

Browse files
ahsalamdavem330
authored andcommitted
ipv6: sr: update the struct ipv6_sr_hdr
The IPv6 Segment Routing Header (SRH) format has been updated (revision 6 of the SRH ietf draft). The update includes the following SRH fields: (1) The "First Segment" field changed to be "Last Entry" which contains the index, in the Segment List, of the last element of the Segment List. (2) The 16 bit "reserved" field now is used as a "tag" which tags a packet as part of a class or group of packets, e.g.,packets sharing the same set of properties. This patch updates the struct ipv6_sr_hdr, so it complies with the updated SRH draft. The 16 bit "reserved" field is changed to be "tag", In addition a comment is added to the "first_segment" field, showing that it represents the "Last Entry" field of the SRH. Signed-off-by: Ahmed Abdelsalam <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent aefd80e commit 6ab6a0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/uapi/linux/seg6.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ struct ipv6_sr_hdr {
2626
__u8 hdrlen;
2727
__u8 type;
2828
__u8 segments_left;
29-
__u8 first_segment;
29+
__u8 first_segment; /* Represents the last_entry field of SRH */
3030
__u8 flags;
31-
__u16 reserved;
31+
__u16 tag;
3232

3333
struct in6_addr segments[0];
3434
};

0 commit comments

Comments
 (0)