diff options
author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-27 18:58:39 +0200 |
---|---|---|
committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-29 02:07:01 +0200 |
commit | d537287a48a88c1f4ba6c5df59fc701ae3045723 (patch) | |
tree | b08abe01573c338a7fe68a8a31afbd13285ff2e5 /lib | |
parent | lib: Add `SRV6_LOCATOR_USID` flag to SRv6 locator (diff) | |
download | frr-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.c | 2 |
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: |