summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-02-15 12:27:53 +0100
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-09-11 22:11:40 +0200
commitc68245089490d8fdab8652dcc421f278cb801381 (patch)
tree054d7d857ac31aae66d0508d7b6f6da0a77276f9 /isisd
parentisisd: Add func to build Sub-Sub-TLV from End SID (diff)
downloadfrr-c68245089490d8fdab8652dcc421f278cb801381.tar.xz
frr-c68245089490d8fdab8652dcc421f278cb801381.zip
isisd: Add structure when building End SID Sub-TLV
Encode SRv6 SID Structure Sub-Sub-TLV when building the SRv6 End SID Sub-TLV. 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 11a3f67cc..3eecefc69 100644
--- a/isisd/isis_tlvs.c
+++ b/isisd/isis_tlvs.c
@@ -7774,6 +7774,11 @@ void isis_subtlvs_add_srv6_end_sid(struct isis_subtlvs *subtlvs,
* configuration */
isis_srv6_end_sid2subtlv(sid, sid_subtlv);
+ /* Add the SRv6 SID Structure Sub-Sub-TLV */
+ sid_subtlv->subsubtlvs =
+ isis_alloc_subsubtlvs(ISIS_CONTEXT_SUBSUBTLV_SRV6_END_SID);
+ isis_subsubtlvs_set_srv6_sid_structure(sid_subtlv->subsubtlvs, sid);
+
/* Append the SRv6 End SID Sub-TLV to the Sub-TLVs list */
append_item(&subtlvs->srv6_end_sids, (struct isis_item *)sid_subtlv);
}