From: Carmine Scarpitta Date: Fri, 27 Jan 2023 15:02:25 +0000 (+0100) Subject: isisd: Bind SRv6 Locator TLV ops to IS-IS TLV type X-Git-Tag: base_9.1~88^2~80 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=12da71d9f8104d9ca7926199356349d0604f43d1;p=mirror%2Ffrr.git isisd: Bind SRv6 Locator TLV ops to IS-IS TLV type General TLV processing functions (i.e., copy, format, free, pack, and unpack) perform a lookup of the specific handler for a TLV in the `tlv_table`, and then call the specific handler to process the TLV. This commit adds the handlers for the SRv6 Locator TLV (stored in `tlv_srv6_locator_ops`) to the `tlv_table`. Signed-off-by: Carmine Scarpitta --- diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c index 08f7c21e0b..7e9654bf08 100644 --- a/isisd/isis_tlvs.c +++ b/isisd/isis_tlvs.c @@ -6441,6 +6441,7 @@ static const struct tlv_ops *const tlv_table[ISIS_CONTEXT_MAX][ISIS_TLV_MAX] = { [ISIS_TLV_MT_IPV6_REACH] = &tlv_ipv6_reach_ops, [ISIS_TLV_THREE_WAY_ADJ] = &tlv_threeway_adj_ops, [ISIS_TLV_ROUTER_CAPABILITY] = &tlv_router_cap_ops, + [ISIS_TLV_SRV6_LOCATOR] = &tlv_srv6_locator_ops, }, [ISIS_CONTEXT_SUBTLV_NE_REACH] = {}, [ISIS_CONTEXT_SUBTLV_IP_REACH] = {