Skip to content

Commit

Permalink
isisd: Add free function for SRv6 End SID Sub-TLV
Browse files Browse the repository at this point in the history
Add a function to free an SRv6 End SID Sub-TLV
(RFC 9352 section sonic-net#7.2).

Signed-off-by: Carmine Scarpitta <[email protected]>
  • Loading branch information
cscarpitta committed Sep 11, 2023
1 parent 2bacddc commit 6605ccf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions isisd/isis_tlvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6605ccf

Please sign in to comment.