From f20cf1457d43c3d5f61845ea5db1c1743b29cfbf Mon Sep 17 00:00:00 2001 From: Dmytro Shytyi Date: Wed, 26 Jul 2023 17:56:32 +0200 Subject: bgpd,lib,sharpd,zebra: srv6 introduce multiple segs/SIDs in nexthop Append zebra and lib to use muliple SRv6 segs SIDs, and keep one seg SID for bgpd and sharpd. Note: bgpd and sharpd compilation relies on the lib and zebra files, i.e if we separate this: lib or zebra or bgpd or sharpd in different commits - this will not compile. Signed-off-by: Dmytro Shytyi --- lib/zclient.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/zclient.h') diff --git a/lib/zclient.h b/lib/zclient.h index 42c5a5fdac..2a3ce4e488 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -438,7 +438,8 @@ struct zapi_nexthop { struct seg6local_context seg6local_ctx; /* SRv6 Headend-behaviour */ - struct in6_addr seg6_segs; + int seg_num; + struct in6_addr seg6_segs[SRV6_MAX_SEGS]; }; /* -- cgit v1.2.3