]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: Bind SRv6 Locator TLV ops to IS-IS TLV type
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Fri, 27 Jan 2023 15:02:25 +0000 (16:02 +0100)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Mon, 11 Sep 2023 15:35:14 +0000 (17:35 +0200)
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 <carmine.scarpitta@uniroma2.it>
isisd/isis_tlvs.c

index 08f7c21e0be078e7716ce038312d8f029fb5047f..7e9654bf086984b1c401c62d76f1513ac5f5f5fb 100644 (file)
@@ -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] = {