summaryrefslogtreecommitdiff
path: root/zebra/zapi_msg.c
diff options
context:
space:
mode:
authorHiroki Shirokura <slank.dev@gmail.com>2021-03-22 02:24:06 +0000
committerMark Stapp <mjs@voltanet.io>2021-06-02 10:24:48 -0400
commit7b778857f8340df730b1b26844a11c09eb7dc451 (patch)
treee11d798038b9fb067c0c763b73cc444cbe6a13e8 /zebra/zapi_msg.c
parenta9510347aa9126fbbca09679a170b10c63ef851c (diff)
zebra: drop un-needed info in locator-zapi
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'zebra/zapi_msg.c')
-rw-r--r--zebra/zapi_msg.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c
index 4f6663fe2b..d97d876cf5 100644
--- a/zebra/zapi_msg.c
+++ b/zebra/zapi_msg.c
@@ -2870,19 +2870,13 @@ static void zread_srv6_manager_get_locator_chunk(struct zserv *client,
vrf_id_t vrf_id)
{
struct stream *s = msg;
- uint8_t proto;
- uint16_t instance;
uint16_t len;
char locator_name[SRV6_LOCNAME_SIZE] = {0};
/* Get data. */
- STREAM_GETC(s, proto);
- STREAM_GETW(s, instance);
STREAM_GETW(s, len);
STREAM_GET(locator_name, s, len);
- assert(proto == client->proto && instance == client->instance);
-
/* call hook to get a chunk using wrapper */
struct srv6_locator *loc = NULL;
srv6_manager_get_locator_chunk_call(&loc, client, locator_name, vrf_id);
@@ -2896,19 +2890,13 @@ static void zread_srv6_manager_release_locator_chunk(struct zserv *client,
vrf_id_t vrf_id)
{
struct stream *s = msg;
- uint8_t proto;
- uint16_t instance;
uint16_t len;
char locator_name[SRV6_LOCNAME_SIZE] = {0};
/* Get data. */
- STREAM_GETC(s, proto);
- STREAM_GETW(s, instance);
STREAM_GETW(s, len);
STREAM_GET(locator_name, s, len);
- assert(proto == client->proto && instance == client->instance);
-
/* call hook to release a chunk using wrapper */
srv6_manager_release_locator_chunk_call(client, locator_name, vrf_id);