isisd: Copy SRv6 Locator TLV when copying TLVs

Extend generic TLVs copy function to copy SRv6 Locator TLVs (RFC 9352
section #7.1).

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
Carmine Scarpitta 2023-02-18 00:19:07 +01:00
parent a2bd91e5b8
commit 24c9374da1

View File

@ -5641,6 +5641,9 @@ struct isis_tlvs *isis_copy_tlvs(struct isis_tlvs *tlvs)
rv->spine_leaf = copy_tlv_spine_leaf(tlvs->spine_leaf);
copy_mt_items(ISIS_CONTEXT_LSP, ISIS_TLV_SRV6_LOCATOR,
&tlvs->srv6_locator, &rv->srv6_locator);
return rv;
}