summaryrefslogtreecommitdiffstats
path: root/isisd/isis_tlvs.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-03-11 12:01:58 +0100
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-09-11 22:11:29 +0200
commit422ea2d410a7b9dd23d2ff9f58c5ee3eff2b12aa (patch)
treea80f073e5a68547443424818c9d18a95ebf9173c /isisd/isis_tlvs.c
parentisisd: Add Sub-Sub-TLVs to End SID format func (diff)
downloadfrr-422ea2d410a7b9dd23d2ff9f58c5ee3eff2b12aa.tar.xz
frr-422ea2d410a7b9dd23d2ff9f58c5ee3eff2b12aa.zip
isisd: Free Sub-Sub-TLVs of SRv6 End SID Sub-TLV
Extend SRv6 End SID Sub-TLV free function to free Sub-Sub-TLVs (RFC 9352 section #9). Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'isisd/isis_tlvs.c')
-rw-r--r--isisd/isis_tlvs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c
index 53dc9cc22..ec3cce391 100644
--- a/isisd/isis_tlvs.c
+++ b/isisd/isis_tlvs.c
@@ -2187,6 +2187,10 @@ 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)
{
+ struct isis_srv6_end_sid_subtlv *item =
+ (struct isis_srv6_end_sid_subtlv *)i;
+
+ isis_free_subsubtlvs(item->subsubtlvs);
XFREE(MTYPE_ISIS_SUBTLV, i);
}