Lines Matching refs:api
204 struct zapi_ipv6 api;
215 api.type = stream_getc (s);
216 api.flags = stream_getc (s);
217 api.message = stream_getc (s);
226 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP))
228 api.nexthop_num = stream_getc (s);
231 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_IFINDEX))
233 api.ifindex_num = stream_getc (s);
236 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_DISTANCE))
237 api.distance = stream_getc (s);
239 api.distance = 0;
240 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_METRIC))
241 api.metric = stream_getl (s);
243 api.metric = 0;
253 zebra_route_name [api.type], prefixstr,
257 zebra_route_name [api.type], prefixstr,
262 ospf6_redistribute_route_add (api.type, ifindex, &p);
264 ospf6_redistribute_route_remove (api.type, ifindex, &p);
357 struct zapi_ipv6 api;
547 api.type = ZEBRA_ROUTE_OSPF6;
548 api.flags = 0;
549 api.message = 0;
550 SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
551 SET_FLAG (api.message, ZAPI_MESSAGE_IFINDEX);
552 api.nexthop_num = nexthop_list->count;
553 api.nexthop = nexthops;
554 api.ifindex_num = nexthop_list->count;
555 api.ifindex = ifindexes;
559 ret = zapi_ipv6_delete (zclient, p, &api);
561 ret = zapi_ipv6_add (zclient, p, &api);