Lines Matching refs:api
414 struct zapi_ipv4 api;
418 api.type = ZEBRA_ROUTE_OSPF;
419 api.flags = 0;
420 api.message = 0;
421 zapi_ipv4_delete (zclient, p, &api);
442 struct zapi_ipv4 api;
449 api.type = ZEBRA_ROUTE_OSPF;
450 api.flags = ZEBRA_FLAG_BLACKHOLE;
451 api.message = 0;
452 SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
453 api.nexthop_num = 1;
454 api.nexthop = &nexthop;
455 api.ifindex_num = 0;
457 zapi_ipv4_add (zclient, p, &api);
466 struct zapi_ipv4 api;
473 api.type = ZEBRA_ROUTE_OSPF;
474 api.flags = ZEBRA_FLAG_BLACKHOLE;
475 api.message = 0;
476 SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
477 api.nexthop_num = 1;
478 api.nexthop = &nexthop;
479 api.ifindex_num = 0;
481 zapi_ipv4_delete (zclient, p, &api);
754 struct zapi_ipv4 api;
765 api.type = stream_getc (s);
766 api.flags = stream_getc (s);
767 api.message = stream_getc (s);
776 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP))
778 api.nexthop_num = stream_getc (s);
781 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_IFINDEX))
783 api.ifindex_num = stream_getc (s);
786 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_DISTANCE))
787 api.distance = stream_getc (s);
788 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_METRIC))
789 api.metric = stream_getl (s);
793 ei = ospf_external_info_add (api.type, p, ifindex, nexthop);
798 ospf_top->external_origin |= (1 << api.type);
823 ospf_external_info_delete (api.type, p);
825 ospf_external_lsa_flush (api.type, &p, ifindex, nexthop);