From 77a8c68df6cea63aa954e68c104b5281123ca290 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Wed, 15 Feb 2023 13:28:25 +0100 Subject: [PATCH] isisd: Bind SRv6 SID Struct ops to TLV type General Sub-Sub-TLV processing functions (i.e., copy, format, free, pack, and unpack) perform a lookup of the handler specific for a Sub-Sub-TLV in the `tlv_table`, and then call the specific handler to process the Sub-Sub-TLV. This commit adds the handlers for the SRv6 Structure Sub-Sub-TLV (stored in `subsubtlv_srv6_sid_structure_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 b62d4cd7b1..9bf9d4a5eb 100644 --- a/isisd/isis_tlvs.c +++ b/isisd/isis_tlvs.c @@ -6836,6 +6836,9 @@ static const struct tlv_ops *const tlv_table[ISIS_CONTEXT_MAX][ISIS_TLV_MAX] = { }, [ISIS_CONTEXT_SUBTLV_SRV6_LOCATOR] = { [ISIS_SUBTLV_SRV6_END_SID] = &tlv_srv6_end_sid_ops, + }, + [ISIS_CONTEXT_SUBSUBTLV_SRV6_END_SID] = { + [ISIS_SUBSUBTLV_SRV6_SID_STRUCTURE] = &subsubtlv_srv6_sid_structure_ops, } };