summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-27 18:58:39 +0200
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-29 02:07:01 +0200
commitd537287a48a88c1f4ba6c5df59fc701ae3045723 (patch)
treeb08abe01573c338a7fe68a8a31afbd13285ff2e5 /lib
parentlib: Add `SRV6_LOCATOR_USID` flag to SRv6 locator (diff)
downloadfrr-d537287a48a88c1f4ba6c5df59fc701ae3045723.tar.xz
frr-d537287a48a88c1f4ba6c5df59fc701ae3045723.zip
lib,zebra: Send SRv6 locator flags over the ZAPI
In this commit, we extend the ZAPI to support encoding and decoding the locator flags contained in the messages exchanged between zebra and the routing daemons. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'lib')
-rw-r--r--lib/zclient.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 8ec82ab7b..5f6fcee2e 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -1088,6 +1088,7 @@ int zapi_srv6_locator_chunk_encode(struct stream *s,
stream_putc(s, c->node_bits_length);
stream_putc(s, c->function_bits_length);
stream_putc(s, c->argument_bits_length);
+ stream_putc(s, c->flags);
return 0;
}
@@ -1109,6 +1110,7 @@ int zapi_srv6_locator_chunk_decode(struct stream *s,
STREAM_GETC(s, c->node_bits_length);
STREAM_GETC(s, c->function_bits_length);
STREAM_GETC(s, c->argument_bits_length);
+ STREAM_GETC(s, c->flags);
return 0;
stream_failure: