mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 22:30:52 +00:00
isisd: Add SRv6 End SID Sub-TLV data structure
Add a data structure to represent an SRv6 End SID Sub-TLV as per RFC 9352 section #7.2. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
parent
c40ab5f2a8
commit
0caeda5a38
@ -16,6 +16,8 @@
|
|||||||
#include "affinitymap.h"
|
#include "affinitymap.h"
|
||||||
|
|
||||||
|
|
||||||
|
#include "lib/srv6.h"
|
||||||
|
|
||||||
DECLARE_MTYPE(ISIS_SUBTLV);
|
DECLARE_MTYPE(ISIS_SUBTLV);
|
||||||
|
|
||||||
struct lspdb_head;
|
struct lspdb_head;
|
||||||
@ -193,6 +195,17 @@ struct isis_router_cap_fad {
|
|||||||
};
|
};
|
||||||
#endif /* ifndef FABRICD */
|
#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 */
|
/* RFC 9352 section 7.1 */
|
||||||
struct isis_srv6_locator_tlv {
|
struct isis_srv6_locator_tlv {
|
||||||
struct isis_srv6_locator_tlv *next;
|
struct isis_srv6_locator_tlv *next;
|
||||||
@ -374,6 +387,9 @@ struct isis_subtlvs {
|
|||||||
struct prefix_ipv6 *source_prefix;
|
struct prefix_ipv6 *source_prefix;
|
||||||
/* RFC 8667 section #2.4 */
|
/* RFC 8667 section #2.4 */
|
||||||
struct isis_item_list prefix_sids;
|
struct isis_item_list prefix_sids;
|
||||||
|
|
||||||
|
/* RFC 9352 section #7.2 */
|
||||||
|
struct isis_item_list srv6_end_sids;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum isis_tlv_type {
|
enum isis_tlv_type {
|
||||||
|
Loading…
Reference in New Issue
Block a user