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

Lines Matching refs:or

7  * GNU Zebra is free software; you can redistribute it and/or modify it
9 * Free Software Foundation; either version 2, or (at your option) any
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
57 ospf_route_free (struct ospf_route *or)
61 if (or->path)
63 for (node = listhead (or->path); node; nextnode (node))
66 list_delete (or->path);
69 XFREE (MTYPE_OSPF_ROUTE, or);
103 struct ospf_route *or;
106 if ((or = rn->info) != NULL)
108 if (or->type == OSPF_DESTINATION_NETWORK)
110 or);
111 else if (or->type == OSPF_DESTINATION_DISCARD)
120 struct ospf_route *or;
123 if ((or = rn->info) != NULL)
125 ospf_route_free (or);
141 struct ospf_route *or;
156 or = rn->info;
157 if (or->type == newor->type && or->cost == newor->cost)
159 if (or->type == OSPF_DESTINATION_NETWORK)
161 if (or->path->count != newor->path->count)
165 for (n1 = listhead (or->path), n2 = listhead (newor->path);
187 struct ospf_route *or;
190 if ((or = rn->info) != NULL)
191 if (or->path_type == OSPF_PATH_INTRA_AREA ||
192 or->path_type == OSPF_PATH_INTER_AREA)
194 if (or->type == OSPF_DESTINATION_NETWORK)
197 (struct prefix_ipv4 *) &rn->p, or))
198 ospf_zebra_delete ((struct prefix_ipv4 *) &rn->p, or);
200 else if (or->type == OSPF_DESTINATION_DISCARD)
202 (struct prefix_ipv4 *) &rn->p, or))
212 struct ospf_route *or;
228 if ((or = rn->info) != NULL)
230 if (or->type == OSPF_DESTINATION_NETWORK)
233 (struct prefix_ipv4 *)&rn->p, or))
234 ospf_zebra_add ((struct prefix_ipv4 *) &rn->p, or);
236 else if (or->type == OSPF_DESTINATION_DISCARD)
238 (struct prefix_ipv4 *) &rn->p, or))
248 struct ospf_route *or;
273 or = ospf_route_new ();
277 or->type = OSPF_DESTINATION_NETWORK;
278 or->path = list_new ();
285 listnode_add (or->path, path);
289 or->type = OSPF_DESTINATION_ROUTER;
291 or->id = v->id;
292 or->u.std.area_id = area->area_id;
294 or->u.std.external_routing= area->external_routing;
296 or->path_type = OSPF_PATH_INTRA_AREA;
297 or->cost = v->distance;
299 rn->info = or;
308 struct ospf_route *or;
326 /* If the newly added vertex is an area border router or AS boundary
346 or = ospf_route_new ();
348 or->id = v->id;
349 or->u.std.area_id = area->area_id;
351 or->u.std.external_routing = area->external_routing;
353 or->path_type = OSPF_PATH_INTRA_AREA;
354 or->cost = v->distance;
355 or->type = OSPF_DESTINATION_ROUTER;
356 or->u.std.origin = (struct lsa_header *) lsa;
357 or->u.std.options = lsa->header.options;
358 or->u.std.flags = lsa->flags;
387 ospf_route_copy_nexthops_from_vertex (or, v);
389 listnode_add (rn->info, or);
400 struct ospf_route *or;
440 or = ospf_route_new ();
442 or->id = v->id;
443 or->u.std.area_id = area->area_id;
445 or->u.std.external_routing = area->external_routing;
447 or->path_type = OSPF_PATH_INTRA_AREA;
448 or->cost = v->distance;
449 or->type = OSPF_DESTINATION_NETWORK;
450 or->u.std.origin = (struct lsa_header *) lsa;
452 ospf_route_copy_nexthops_from_vertex (or, v);
454 rn->info = or;
464 struct ospf_route *or;
573 or = ospf_route_new ();
575 or->id = v->id;
576 or->u.std.area_id = area->area_id;
578 or->u.std.external_routing = area->external_routing;
580 or->path_type = OSPF_PATH_INTRA_AREA;
581 or->cost = cost;
582 or->type = OSPF_DESTINATION_NETWORK;
583 or->u.std.origin = (struct lsa_header *) lsa;
584 or->path = list_new ();
591 ospf_route_copy_nexthops_from_vertex (or, v);
607 listnode_add (or->path, path);
616 rn->info = or;
635 struct ospf_route *or;
648 if ((or = rn->info) != NULL)
650 if (or->type == OSPF_DESTINATION_NETWORK)
655 inet_ntop (AF_INET, &or->u.std.area_id, buf2,
657 ospf_path_type_str[or->path_type],
658 or->cost);
659 for (pnode = listhead (or->path); pnode; nextnode (pnode))
668 inet_ntop (AF_INET, &or->u.std.area_id, buf2,
670 ospf_path_type_str[or->path_type],
671 or->cost);
889 struct ospf_route *or;
899 or = rn->info;
900 if (listcount (or->path) == 0)
906 ospf_route_free (or);
918 struct ospf_route *or;
935 or = getdata (node);
937 if (listcount (or->path) == 0)
944 inet_ntoa (or->u.std.area_id));
947 listnode_delete (paths, or);
948 ospf_route_free (or);
969 struct ospf_route *or, *new_or;
984 or = rn->info;
986 if (or->path_type == OSPF_PATH_INTRA_AREA)
994 if (or->type == OSPF_DESTINATION_DISCARD)