int ospf6_is_router_abr (struct ospf6 *o) { struct listnode *node; struct ospf6_area *oa; int area_count = 0; for (ALL_LIST_ELEMENTS_RO (o->area_list, node, oa)) if (IS_AREA_ENABLED (oa)) area_count++; if (area_count > 1) return 1; return 0; }
int ospf6_is_router_abr (struct ospf6 *o) { listnode node; struct ospf6_area *oa; int area_count = 0; for (node = listhead (o->area_list); node; nextnode (node)) { oa = OSPF6_AREA (getdata (node)); if (IS_AREA_ENABLED (oa)) area_count++; } if (area_count > 1) return 1; return 0; }