mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 16:20:08 +00:00
isisd: Pack SID Struct when packing Sub-Sub-TLVs
Extend generic Sub-Sub-TLVs pack function to pack SRv6 SID Structure Sub-Sub-TLVs (RFC 9352 section FRRouting#9). Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
parent
2dfe8ef463
commit
8953be7a0c
@ -2112,6 +2112,11 @@ static int isis_pack_subsubtlvs(struct isis_subsubtlvs *subsubtlvs,
|
||||
|
||||
stream_putc(s, 0); /* Put 0 as Sub-Sub-TLVs length, filled in later */
|
||||
|
||||
rv = pack_subsubtlv_srv6_sid_structure(subsubtlvs->srv6_sid_structure,
|
||||
s);
|
||||
if (rv)
|
||||
return rv;
|
||||
|
||||
size_t subsubtlv_len = stream_get_endp(s) - subsubtlv_len_pos - 1;
|
||||
if (subsubtlv_len > 255)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user