From eb16e0b0bc2dacd4d13f3b39b8550604da881581 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Thu, 25 May 2023 13:03:15 +0200 Subject: [PATCH] isisd: Add flags for SRv6 (LAN) End.X SID Sub-TLV SRv6 End.X SID Sub-TLV (RFC 9352 section #8.1) and SRv6 LAN End.X SID Sub-TLV (RFC 9352 section #8.2) contain a `flag` field. Currently, three flags are defined: * B-Flag: Backup flag * S-Flag: Set flag * P-Flag: Persistent flag This commit defines three constants representing these flags. Signed-off-by: Carmine Scarpitta --- isisd/isis_tlvs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/isisd/isis_tlvs.h b/isisd/isis_tlvs.h index 138e5bbeae53..8ebe3d84c118 100644 --- a/isisd/isis_tlvs.h +++ b/isisd/isis_tlvs.h @@ -219,6 +219,11 @@ struct isis_srv6_end_sid_subtlv { struct isis_subsubtlvs *subsubtlvs; }; +/* SRv6 End.X SID and SRv6 LAN End.X SID sub-TLVs flags */ +#define EXT_SUBTLV_LINK_SRV6_ENDX_SID_PFLG 0x20 +#define EXT_SUBTLV_LINK_SRV6_ENDX_SID_SFLG 0x40 +#define EXT_SUBTLV_LINK_SRV6_ENDX_SID_BFLG 0x80 + /* SRv6 End.X SID Sub-TLV as per RFC 9352 section #8.1 */ struct isis_srv6_endx_sid_subtlv { struct isis_srv6_endx_sid_subtlv *next;