• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/zebra/

Lines Matching refs:api

977   struct zapi_ipv4 api;
990 api.type = stream_getc (s);
991 api.flags = stream_getc (s);
992 api.message = stream_getc (s);
1001 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP))
1029 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_DISTANCE))
1030 api.distance = stream_getc (s);
1032 api.distance = 0;
1035 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_METRIC))
1036 api.metric = stream_getl (s);
1038 api.metric = 0;
1040 rib_delete_ipv4 (api.type, api.flags, &p, &nexthop, ifindex,
1074 struct zapi_ipv6 api;
1084 api.type = stream_getc (s);
1085 api.flags = stream_getc (s);
1086 api.message = stream_getc (s);
1095 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP))
1099 api.nexthop_num = stream_getc (s);
1100 for (i = 0; i < api.nexthop_num; i++)
1116 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_DISTANCE))
1117 api.distance = stream_getc (s);
1119 api.distance = 0;
1121 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_METRIC))
1122 api.metric = stream_getl (s);
1124 api.metric = 0;
1127 rib_add_ipv6 (api.type, api.flags, &p, NULL, ifindex, 0);
1129 rib_add_ipv6 (api.type, api.flags, &p, &nexthop, ifindex, 0);
1138 struct zapi_ipv6 api;
1148 api.type = stream_getc (s);
1149 api.flags = stream_getc (s);
1150 api.message = stream_getc (s);
1159 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP))
1163 api.nexthop_num = stream_getc (s);
1164 for (i = 0; i < api.nexthop_num; i++)
1180 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_DISTANCE))
1181 api.distance = stream_getc (s);
1183 api.distance = 0;
1184 if (CHECK_FLAG (api.message, ZAPI_MESSAGE_METRIC))
1185 api.metric = stream_getl (s);
1187 api.metric = 0;
1190 rib_delete_ipv6 (api.type, api.flags, &p, NULL, ifindex, 0);
1192 rib_delete_ipv6 (api.type, api.flags, &p, &nexthop, ifindex, 0);