diff options
author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2023-02-15 11:35:46 +0100 |
---|---|---|
committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2023-09-11 22:11:37 +0200 |
commit | 6cd23c6d95e52b1a86b2a8a2b77d8c929252e251 (patch) | |
tree | d98eac50481df32f3dbb7d7eaa493710444e77e4 /isisd/isis_srv6.h | |
parent | isisd: Add SRv6 locator data structure (diff) | |
download | frr-6cd23c6d95e52b1a86b2a8a2b77d8c929252e251.tar.xz frr-6cd23c6d95e52b1a86b2a8a2b77d8c929252e251.zip |
isisd: Add function to fill in an SRv6 Locator TLV
Add a function to fill in an SRv6 Locator TLV with information from an
SRv6 locator (RFC 9352 section #7.1).
Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'isisd/isis_srv6.h')
-rw-r--r-- | isisd/isis_srv6.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/isisd/isis_srv6.h b/isisd/isis_srv6.h index 943a6c8b8..80184ffa5 100644 --- a/isisd/isis_srv6.h +++ b/isisd/isis_srv6.h @@ -12,6 +12,8 @@ #include "lib/srv6.h" +#include "isisd/isis_tlvs.h" + /* Maximum SRv6 SID Depths supported by the router */ #define SRV6_MAX_SEG_LEFT 3 #define SRV6_MAX_END_POP 3 @@ -112,4 +114,7 @@ extern void isis_srv6_area_term(struct isis_area *area); void isis_srv6_init(void); void isis_srv6_term(void); +void isis_srv6_locator2tlv(const struct isis_srv6_locator *loc, + struct isis_srv6_locator_tlv *loc_tlv); + #endif /* _FRR_ISIS_SRV6_H */ |