Skip to content

Commit eb16e0b

Browse files
committed
isisd: Add flags for SRv6 (LAN) End.X SID Sub-TLV
SRv6 End.X SID Sub-TLV (RFC 9352 section sonic-net#8.1) and SRv6 LAN End.X SID Sub-TLV (RFC 9352 section sonic-net#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 <carmine.scarpitta@uniroma2.it>
1 parent e083282 commit eb16e0b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

isisd/isis_tlvs.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ struct isis_srv6_end_sid_subtlv {
219219
struct isis_subsubtlvs *subsubtlvs;
220220
};
221221

222+
/* SRv6 End.X SID and SRv6 LAN End.X SID sub-TLVs flags */
223+
#define EXT_SUBTLV_LINK_SRV6_ENDX_SID_PFLG 0x20
224+
#define EXT_SUBTLV_LINK_SRV6_ENDX_SID_SFLG 0x40
225+
#define EXT_SUBTLV_LINK_SRV6_ENDX_SID_BFLG 0x80
226+
222227
/* SRv6 End.X SID Sub-TLV as per RFC 9352 section #8.1 */
223228
struct isis_srv6_endx_sid_subtlv {
224229
struct isis_srv6_endx_sid_subtlv *next;

0 commit comments

Comments
 (0)