Skip to content

Commit

Permalink
isisd: Add SRv6 End SID Sub-TLV data structure
Browse files Browse the repository at this point in the history
Add a data structure to represent an SRv6 End SID Sub-TLV as per
RFC 9352 section sonic-net#7.2.

Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
cscarpitta committed Sep 11, 2023
1 parent c40ab5f commit 0caeda5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions isisd/isis_tlvs.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "affinitymap.h"


#include "lib/srv6.h"

DECLARE_MTYPE(ISIS_SUBTLV);

struct lspdb_head;
Expand Down Expand Up @@ -193,6 +195,17 @@ struct isis_router_cap_fad {
};
#endif /* ifndef FABRICD */

/* SRv6 End SID Sub-TLV as per RFC 9352 section #7.2 */
struct isis_srv6_end_sid_subtlv {
struct isis_srv6_end_sid_subtlv *next;

uint8_t flags;
enum srv6_endpoint_behavior_codepoint behavior;
struct in6_addr sid;

struct isis_subsubtlvs *subsubtlvs;
};

/* RFC 9352 section 7.1 */
struct isis_srv6_locator_tlv {
struct isis_srv6_locator_tlv *next;
Expand Down Expand Up @@ -374,6 +387,9 @@ struct isis_subtlvs {
struct prefix_ipv6 *source_prefix;
/* RFC 8667 section #2.4 */
struct isis_item_list prefix_sids;

/* RFC 9352 section #7.2 */
struct isis_item_list srv6_end_sids;
};

enum isis_tlv_type {
Expand Down

0 comments on commit 0caeda5

Please sign in to comment.