diff options
| author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2023-06-03 02:22:02 +0200 |
|---|---|---|
| committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2023-09-11 22:11:46 +0200 |
| commit | df121f68e7a8b943c3bcc36c632fcd5116b8aad8 (patch) | |
| tree | 790cedd2c26ac33b6e9087cecf08fd2882fb934b | |
| parent | d56c0d23b0c5b60e2ae9f2ae1af9c143b49a4539 (diff) | |
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 <carmine.scarpitta@uniroma2.it>
| -rw-r--r-- | isisd/isis_tlvs.c | 2 | ||||
| -rw-r--r-- | isisd/isis_tlvs.h | 1 |
2 files changed, 2 insertions, 1 deletions
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; |
