zclient_create_header(s, ZEBRA_SRV6_MANAGER_GET_LOCATOR_CHUNK,
VRF_DEFAULT);
- /* proto */
- stream_putc(s, zclient->redist_default);
-
- /* instance */
- stream_putw(s, zclient->instance);
-
/* locator_name */
stream_putw(s, len);
stream_put(s, locator_name, len);
zclient_create_header(s, ZEBRA_SRV6_MANAGER_RELEASE_LOCATOR_CHUNK,
VRF_DEFAULT);
- /* proto */
- stream_putc(s, zclient->redist_default);
-
- /* instance */
- stream_putw(s, zclient->instance);
-
/* locator_name */
stream_putw(s, len);
stream_put(s, locator_name, len);
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);
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);