• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/quagga/ospfd/

Lines Matching refs:ospf

96     ospf_delete_discard_route (area->ospf->new_table,
169 ospf_area_range_match_any (struct ospf *ospf, struct prefix_ipv4 *p)
175 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
195 ospf_area_range_set (struct ospf *ospf, struct in_addr area_id,
202 area = ospf_area_get (ospf, area_id, ret);
213 ospf_schedule_abr_task (ospf);
219 ospf_schedule_abr_task (ospf);
231 ospf_area_range_cost_set (struct ospf *ospf, struct in_addr area_id,
238 area = ospf_area_get (ospf, area_id, ret);
250 ospf_schedule_abr_task (ospf);
257 ospf_area_range_unset (struct ospf *ospf, struct in_addr area_id,
263 area = ospf_area_lookup_by_area_id (ospf, area_id);
272 ospf_schedule_abr_task (ospf);
280 ospf_area_range_substitute_set (struct ospf *ospf, struct in_addr area_id,
287 area = ospf_area_get (ospf, area_id, ret);
294 ospf_schedule_abr_task (ospf);
300 ospf_schedule_abr_task (ospf);
312 ospf_area_range_substitute_unset (struct ospf *ospf, struct in_addr area_id,
318 area = ospf_area_lookup_by_area_id (ospf, area_id);
328 ospf_schedule_abr_task (ospf);
338 ospf_act_bb_connection (struct ospf *ospf)
340 if (ospf->backbone == NULL)
343 return ospf->backbone->full_nbrs;
393 if (IPV4_ADDR_CMP (&best->s_addr, &area->ospf->router_id.s_addr) < 0)
403 ospf_abr_nssa_check_status (struct ospf *ospf)
408 for (ALL_LIST_ELEMENTS (ospf->areas, lnode, nnode, area))
420 if (!IS_OSPF_ABR (area->ospf))
477 ospf_asbr_status_update (ospf, ++ospf->redistribute);
479 ospf_asbr_status_update (ospf, --ospf->redistribute);
486 ospf_check_abr_status (struct ospf *ospf)
494 u_char new_flags = ospf->flags;
499 for (ALL_LIST_ELEMENTS (ospf->areas, node, nnode, area))
530 switch (ospf->abr_type)
557 if (new_flags != ospf->flags)
559 ospf_spf_calculate_schedule (ospf, SPF_FLAG_ABR_STATUS_CHANGE);
562 ospf->flags = new_flags;
563 ospf_router_lsa_update (ospf);
672 old = ospf_external_info_find_lsa (area->ospf, &p);
682 new = ospf_translated_nssa_refresh (area->ospf, lsa, old);
697 if ((new = ospf_translated_nssa_originate (area->ospf, lsa))
740 area->ospf->router_id);
769 lsa = ospf_lsa_refresh (area->ospf, old);
882 ospf_abr_announce_network (struct ospf *ospf,
892 or_area = ospf_area_lookup_by_area_id (ospf, or->u.std.area_id);
895 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
961 ospf_abr_should_announce (struct ospf *ospf,
966 area = ospf_area_lookup_by_area_id (ospf, or->u.std.area_id);
984 ospf_abr_process_nssa_translates (struct ospf *ospf)
1000 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1022 ospf_abr_process_network_rt (struct ospf *ospf,
1037 if (!(area = ospf_area_lookup_by_area_id (ospf, or->u.std.area_id)))
1073 !ospf_abr_should_announce (ospf, (struct prefix_ipv4 *) &rn->p, or))
1098 if ((ospf->abr_type == OSPF_ABR_CISCO) ||
1099 (ospf->abr_type == OSPF_ABR_IBM))
1101 if (!ospf_act_bb_connection (ospf) &&
1112 ospf_abr_announce_network (ospf, (struct prefix_ipv4 *)&rn->p, or);
1130 p, area->ospf->router_id);
1158 lsa = ospf_lsa_refresh (area->ospf, old);
1192 ospf_abr_announce_rtr (struct ospf *ospf,
1201 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1245 ospf_abr_process_router_rt (struct ospf *ospf, struct route_table *rt)
1271 if (!ospf_area_lookup_by_area_id (ospf, or->u.std.area_id))
1290 best = ospf_find_asbr_route (ospf, rt,
1323 if (ospf->abr_type == OSPF_ABR_CISCO
1324 || ospf->abr_type == OSPF_ABR_IBM)
1325 if (!ospf_act_bb_connection (ospf)
1334 ospf_abr_announce_rtr (ospf, (struct prefix_ipv4 *) &rn->p, or);
1345 ospf_abr_unapprove_translates (struct ospf *ospf) /* For NSSA Translations */
1356 LSDB_LOOP (EXTERNAL_LSDB (ospf), rn, lsa)
1371 ospf_abr_unapprove_summaries (struct ospf *ospf)
1381 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1388 if (ospf_lsa_is_self_originated (ospf, lsa))
1398 if (ospf_lsa_is_self_originated (ospf, lsa))
1413 ospf_abr_prepare_aggregates (struct ospf *ospf)
1423 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1438 ospf_abr_announce_aggregates (struct ospf *ospf)
1449 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1487 for (ALL_LIST_ELEMENTS_RO (ospf->areas, n, ar))
1519 ospf_abr_send_nssa_aggregates (struct ospf *ospf) /* temporarily turned off */
1530 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1588 ospf_abr_announce_stub_defaults (struct ospf *ospf)
1594 if (! IS_OSPF_ABR (ospf))
1604 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1630 ospf_abr_remove_unapproved_translates_apply (struct ospf *ospf,
1641 ospf_lsa_flush_as (ospf, lsa);
1649 ospf_abr_remove_unapproved_translates (struct ospf *ospf)
1659 LSDB_LOOP (EXTERNAL_LSDB (ospf), rn, lsa)
1660 ospf_abr_remove_unapproved_translates_apply (ospf, lsa);
1667 ospf_abr_remove_unapproved_summaries (struct ospf *ospf)
1677 for (ALL_LIST_ELEMENTS_RO (ospf->areas, node, area))
1684 if (ospf_lsa_is_self_originated (ospf, lsa))
1689 if (ospf_lsa_is_self_originated (ospf, lsa))
1699 ospf_abr_manage_discard_routes (struct ospf *ospf)
1706 for (ALL_LIST_ELEMENTS (ospf->areas, node, nnode, area))
1712 ospf_add_discard_route (ospf->new_table, area,
1715 ospf_delete_discard_route (ospf->new_table,
1746 ospf_abr_nssa_task (struct ospf *ospf) /* called only if any_nssa */
1751 if (! IS_OSPF_ABR (ospf))
1754 if (! ospf->anyNSSA)
1765 ospf_abr_unapprove_translates (ospf);
1770 ospf_abr_prepare_aggregates (ospf); /*TURNED OFF just for now */
1778 ospf_abr_process_nssa_translates (ospf);
1787 ospf_abr_send_nssa_aggregates (ospf); /*TURNED OFF FOR NOW */
1792 *ospf_abr_announce_nssa_defaults (ospf);
1799 ospf_abr_remove_unapproved_translates (ospf);
1801 ospf_abr_manage_discard_routes (ospf); /* same as normal...discard */
1810 ospf_abr_task (struct ospf *ospf)
1815 if (ospf->new_table == NULL || ospf->new_rtrs == NULL)
1824 ospf_abr_unapprove_summaries (ospf);
1828 ospf_abr_prepare_aggregates (ospf);
1830 if (IS_OSPF_ABR (ospf))
1834 ospf_abr_process_network_rt (ospf, ospf->new_table);
1838 ospf_abr_process_router_rt (ospf, ospf->new_rtrs);
1842 ospf_abr_announce_aggregates (ospf);
1846 ospf_abr_announce_stub_defaults (ospf);
1851 ospf_abr_remove_unapproved_summaries (ospf);
1853 ospf_abr_manage_discard_routes (ospf);
1862 struct ospf *ospf = THREAD_ARG (thread);
1864 ospf->t_abr_task = 0;
1869 ospf_check_abr_status (ospf);
1870 ospf_abr_nssa_check_status (ospf);
1872 ospf_abr_task (ospf);
1873 ospf_abr_nssa_task (ospf); /* if nssa-abr, then scan Type-7 LSDB */
1879 ospf_schedule_abr_task (struct ospf *ospf)
1884 if (ospf->t_abr_task == NULL)
1885 ospf->t_abr_task = thread_add_timer (master, ospf_abr_task_timer,
1886 ospf, OSPF_ABR_TASK_DELAY);