Skip to content

Commit df121f6

Browse files
committed
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 <[email protected]>
1 parent d56c0d2 commit df121f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

isisd/isis_tlvs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
DEFINE_MTYPE_STATIC(ISISD, ISIS_TLV, "ISIS TLVs");
4242
DEFINE_MTYPE(ISISD, ISIS_SUBTLV, "ISIS Sub-TLVs");
43-
DEFINE_MTYPE_STATIC(ISISD, ISIS_SUBSUBTLV, "ISIS Sub-Sub-TLVs");
43+
DEFINE_MTYPE(ISISD, ISIS_SUBSUBTLV, "ISIS Sub-Sub-TLVs");
4444
DEFINE_MTYPE_STATIC(ISISD, ISIS_MT_ITEM_LIST, "ISIS MT Item Lists");
4545

4646
typedef int (*unpack_tlv_func)(enum isis_tlv_context context, uint8_t tlv_type,

isisd/isis_tlvs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "lib/srv6.h"
2323

2424
DECLARE_MTYPE(ISIS_SUBTLV);
25+
DECLARE_MTYPE(ISIS_SUBSUBTLV);
2526

2627
struct lspdb_head;
2728
struct sr_prefix_cfg;

0 commit comments

Comments
 (0)