summaryrefslogtreecommitdiffstats
path: root/isisd/isis_tlvs.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-02-15 13:28:06 +0100
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-09-11 22:11:23 +0200
commit15ecf1a1254e93b1f81af65af9a543e18968ca6a (patch)
treec97e68ee504e679d757fffcccba7f39f387c561d /isisd/isis_tlvs.c
parentisisd: Define TLV ops for SRv6 End SID Sub-TLV (diff)
downloadfrr-15ecf1a1254e93b1f81af65af9a543e18968ca6a.tar.xz
frr-15ecf1a1254e93b1f81af65af9a543e18968ca6a.zip
isisd: Bind SRv6 End SID Sub-TLV ops to TLV type
General Sub-TLV processing functions (i.e., copy, format, free, pack, and unpack) perform a lookup of the specific handler for a Sub-TLV in the `tlv_table`, and then call the specific handler to process the Sub-TLV. This commit adds the handlers for the SRv6 End SID Sub-TLV (stored in `tlv_srv6_end_sid_ops`) to the `tlv_table`. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'isisd/isis_tlvs.c')
-rw-r--r--isisd/isis_tlvs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c
index 44375fd25..1d3a6b423 100644
--- a/isisd/isis_tlvs.c
+++ b/isisd/isis_tlvs.c
@@ -6582,6 +6582,9 @@ static const struct tlv_ops *const tlv_table[ISIS_CONTEXT_MAX][ISIS_TLV_MAX] = {
[ISIS_CONTEXT_SUBTLV_IPV6_REACH] = {
[ISIS_SUBTLV_PREFIX_SID] = &tlv_prefix_sid_ops,
[ISIS_SUBTLV_IPV6_SOURCE_PREFIX] = &subtlv_ipv6_source_prefix_ops,
+ },
+ [ISIS_CONTEXT_SUBTLV_SRV6_LOCATOR] = {
+ [ISIS_SUBTLV_SRV6_END_SID] = &tlv_srv6_end_sid_ops,
}
};