From: Carmine Scarpitta Date: Wed, 1 Mar 2023 15:46:57 +0000 (+0100) Subject: isisd: Add format func for Sub-Sub-TLVs in general X-Git-Tag: base_9.1~88^2~57 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=28354d6f3802ab03aa6402e454c0cd51520ad3f2;p=matthieu%2Ffrr.git isisd: Add format func for Sub-Sub-TLVs in general Add a function to return information about all the Sub-Sub-TLVs passed as an argument. At this time, this function does nothing because no Sub-Sub-TLVs have been defined yet. This function will be extended in future commits to return information about specific Sub-Sub-TLVs, as they become supported. Signed-off-by: Carmine Scarpitta --- diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c index 9eb3a846a1..5441db7833 100644 --- a/isisd/isis_tlvs.c +++ b/isisd/isis_tlvs.c @@ -110,6 +110,10 @@ static const struct tlv_ops *const tlv_table[ISIS_CONTEXT_MAX][ISIS_TLV_MAX]; static void append_item(struct isis_item_list *dest, struct isis_item *item); static void init_item_list(struct isis_item_list *items); +static void isis_format_subsubtlvs(struct isis_subsubtlvs *subsubtlvs, + struct sbuf *buf, struct json_object *json, + int indent); + /* For tests/isisd, TLV text requires ipv4-unicast instead of standard */ static const char *isis_mtid2str_fake(uint16_t mtid) { @@ -1996,6 +2000,12 @@ isis_copy_subsubtlvs(struct isis_subsubtlvs *subsubtlvs) return rv; } +static void isis_format_subsubtlvs(struct isis_subsubtlvs *subsubtlvs, + struct sbuf *buf, struct json_object *json, + int indent) +{ +} + /* Functions related to subtlvs */ static struct isis_subtlvs *isis_alloc_subtlvs(enum isis_tlv_context context)