]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: Bind SRv6 End SID Sub-TLV ops to TLV type
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Wed, 15 Feb 2023 12:28:06 +0000 (13:28 +0100)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Mon, 11 Sep 2023 20:11:23 +0000 (22:11 +0200)
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>
isisd/isis_tlvs.c

index 44375fd254f6113c49117fde024831d3f2c5d6c0..1d3a6b423fb207758ae8c723ca5e1e155582593f 100644 (file)
@@ -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,
        }
 };