From 15ecf1a1254e93b1f81af65af9a543e18968ca6a Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Wed, 15 Feb 2023 13:28:06 +0100 Subject: [PATCH] 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 --- isisd/isis_tlvs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c index 44375fd254..1d3a6b423f 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, } };