From df121f68e7a8b943c3bcc36c632fcd5116b8aad8 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Sat, 3 Jun 2023 02:22:02 +0200 Subject: [PATCH] isisd: Make MTYPE_ISIS_SUBSUBTLV non-static We need to allocate memory SRv6 SID Structure Sub-Sub-TLV in isis_srv6.c. MTYPE_ISIS_SUBSUBTLV is statically defined in isis_tlvs.c and therefore is not visible in isis_srv6.c. Let's make MTYPE_ISIS_SUBSUBTLV non-static to provide visibility to the external world.. Signed-off-by: Carmine Scarpitta --- isisd/isis_tlvs.c | 2 +- isisd/isis_tlvs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c index 918bb9b9d9..fb88aa13da 100644 --- a/isisd/isis_tlvs.c +++ b/isisd/isis_tlvs.c @@ -40,7 +40,7 @@ DEFINE_MTYPE_STATIC(ISISD, ISIS_TLV, "ISIS TLVs"); DEFINE_MTYPE(ISISD, ISIS_SUBTLV, "ISIS Sub-TLVs"); -DEFINE_MTYPE_STATIC(ISISD, ISIS_SUBSUBTLV, "ISIS Sub-Sub-TLVs"); +DEFINE_MTYPE(ISISD, ISIS_SUBSUBTLV, "ISIS Sub-Sub-TLVs"); DEFINE_MTYPE_STATIC(ISISD, ISIS_MT_ITEM_LIST, "ISIS MT Item Lists"); typedef int (*unpack_tlv_func)(enum isis_tlv_context context, uint8_t tlv_type, diff --git a/isisd/isis_tlvs.h b/isisd/isis_tlvs.h index 825610ed35..fee0b5a363 100644 --- a/isisd/isis_tlvs.h +++ b/isisd/isis_tlvs.h @@ -22,6 +22,7 @@ #include "lib/srv6.h" DECLARE_MTYPE(ISIS_SUBTLV); +DECLARE_MTYPE(ISIS_SUBSUBTLV); struct lspdb_head; struct sr_prefix_cfg; -- 2.39.5