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

Lines Matching refs:ifc

41   struct connected *ifc;
46 ifc = getdata (node);
48 if (prefix_same (ifc->address, p))
49 return ifc;
56 connected_up_ipv4 (struct interface *ifp, struct connected *ifc)
62 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
65 addr = (struct prefix_ipv4 *) ifc->address;
66 dest = (struct prefix_ipv4 *) ifc->destination;
97 struct connected *ifc;
101 ifc = connected_new ();
102 ifc->ifp = ifp;
103 ifc->flags = flags;
110 ifc->address = (struct prefix *) p;
118 ifc->destination = (struct prefix *) p;
123 ifc->label = strdup (label);
126 current = connected_check_ipv4 (ifp, (struct prefix *) ifc->address);
129 connected_free (ifc);
130 ifc = current;
134 listnode_add (ifp->connected, ifc);
138 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
140 SET_FLAG (ifc->conf, ZEBRA_IFC_REAL);
142 zebra_interface_address_add_update (ifp, ifc);
145 connected_up_ipv4 (ifp, ifc);
150 connected_down_ipv4 (struct interface *ifp, struct connected *ifc)
156 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
159 addr = (struct prefix_ipv4 *)ifc->address;
160 dest = (struct prefix_ipv4 *)ifc->destination;
190 struct connected *ifc;
197 ifc = connected_check_ipv4 (ifp, (struct prefix *) &p);
198 if (! ifc)
202 if (CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
204 zebra_interface_address_delete_update (ifp, ifc);
206 connected_down_ipv4 (ifp, ifc);
208 UNSET_FLAG (ifc->conf, ZEBRA_IFC_REAL);
211 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED))
213 listnode_delete (ifp->connected, ifc);
214 connected_free (ifc);
223 struct connected *ifc;
228 ifc = getdata (node);
230 if (prefix_same (ifc->address, p))
231 return ifc;
237 connected_up_ipv6 (struct interface *ifp, struct connected *ifc)
243 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
246 addr = (struct prefix_ipv6 *) ifc->address;
247 dest = (struct prefix_ipv6 *) ifc->destination;
280 struct connected *ifc;
284 ifc = connected_new ();
285 ifc->ifp = ifp;
292 ifc->address = (struct prefix *) p;
300 ifc->destination = (struct prefix *) p;
303 current = connected_check_ipv6 (ifp, (struct prefix *) ifc->address);
306 connected_free (ifc);
307 ifc = current;
311 listnode_add (ifp->connected, ifc);
315 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
317 SET_FLAG (ifc->conf, ZEBRA_IFC_REAL);
319 zebra_interface_address_add_update (ifp, ifc);
322 connected_up_ipv6 (ifp, ifc);
327 connected_down_ipv6 (struct interface *ifp, struct connected *ifc)
333 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
336 addr = (struct prefix_ipv6 *) ifc->address;
337 dest = (struct prefix_ipv6 *) ifc->destination;
368 struct connected *ifc;
375 ifc = connected_check_ipv6 (ifp, (struct prefix *) &p);
376 if (! ifc)
380 if (CHECK_FLAG (ifc->conf, ZEBRA_IFC_REAL))
382 zebra_interface_address_delete_update (ifp, ifc);
384 connected_down_ipv6 (ifp, ifc);
386 UNSET_FLAG (ifc->conf, ZEBRA_IFC_REAL);
389 if (! CHECK_FLAG (ifc->conf, ZEBRA_IFC_CONFIGURED))
391 listnode_delete (ifp->connected, ifc);
392 connected_free (ifc);