Skip to content

Commit

Permalink
isisd: Add flags for SRv6 (LAN) End.X SID Sub-TLV
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cscarpitta committed Sep 11, 2023
1 parent e083282 commit eb16e0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions isisd/isis_tlvs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb16e0b

Please sign in to comment.