summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-02-14 13:31:53 +0100
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-09-11 17:35:19 +0200
commit6605ccf09ed1a127d238de4bbc4c055e8fd65250 (patch)
treea0b41db13f01fc0783ab9012806745f1b0b0ebeb /isisd
parentisisd: Add format func for SRv6 End SID Sub-TLV (diff)
downloadfrr-6605ccf09ed1a127d238de4bbc4c055e8fd65250.tar.xz
frr-6605ccf09ed1a127d238de4bbc4c055e8fd65250.zip
isisd: Add free function for SRv6 End SID Sub-TLV
Add a function to free an SRv6 End SID Sub-TLV (RFC 9352 section #7.2). Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_tlvs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c
index 37fdf6aa6..206971d79 100644
--- a/isisd/isis_tlvs.c
+++ b/isisd/isis_tlvs.c
@@ -2093,6 +2093,11 @@ static void format_item_srv6_end_sid(uint16_t mtid, struct isis_item *i,
}
}
+static void free_item_srv6_end_sid(struct isis_item *i)
+{
+ XFREE(MTYPE_ISIS_SUBTLV, i);
+}
+
/* Functions related to TLVs 1 Area Addresses */
static struct isis_item *copy_item_area_address(struct isis_item *i)