From 39cf995a82e925e099fb22770e0f015ff8cac410 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Fri, 3 Mar 2023 22:29:10 +0100 Subject: [PATCH] isisd: Add SRv6 Cap to Router Cap TLV format func Extend Router Capabilities TLV format function to return information about SRv6 Capabilities Sub-TLVs (RFC 9352 section #2). Signed-off-by: Carmine Scarpitta --- isisd/isis_tlvs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/isisd/isis_tlvs.c b/isisd/isis_tlvs.c index 69c73ef081..94e0f5c2c1 100644 --- a/isisd/isis_tlvs.c +++ b/isisd/isis_tlvs.c @@ -4132,6 +4132,11 @@ static void format_tlv_router_cap(const struct isis_router_cap *router_cap, " Got an unsupported sub-TLV: Yes\n"); } #endif /* ifndef FABRICD */ + + /* SRv6 Flags as per RFC 9352 section #2 */ + if (router_cap->srv6_cap.is_srv6_capable) + sbuf_push(buf, indent, " SRv6: O:%s\n", + SUPPORTS_SRV6_OAM(&router_cap->srv6_cap) ? "1" : "0"); } static void free_tlv_router_cap(struct isis_router_cap *router_cap) -- 2.39.5