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 <carmine.scarpitta@uniroma2.it>
This commit is contained in:
Carmine Scarpitta 2023-02-15 13:28:25 +01:00
parent 46a93507f3
commit 77a8c68df6

View File

@ -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,
}
};