summaryrefslogtreecommitdiff
path: root/ospfd/ospfd.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-05-10 07:43:59 +0000
committerhasso <hasso>2004-05-10 07:43:59 +0000
commitdd669bb0e7102a5896925f98203fa991560748b7 (patch)
tree80edd1c4792789a41226af378d8fb99f444b88b6 /ospfd/ospfd.c
parent2a56df976d3fb0800921ef561c346b85e7acb6be (diff)
* Make updating redistributions work if prefix list is changed and it's
used in route-map used to filter redistributions. * Move ospf_prefix_list_update() function from ospfd.c to ospf_zebra.c.
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r--ospfd/ospfd.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index abf898ca..3cf93a67 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -1638,49 +1638,6 @@ ospf_nbr_nbma_poll_interval_unset (struct ospf *ospf, struct in_addr addr)
return 1;
}
-
-void
-ospf_prefix_list_update (struct prefix_list *plist)
-{
- struct ospf *ospf;
- struct ospf_area *area;
- listnode node;
- int abr_inv = 0;
-
- /* If OSPF instatnce does not exist, return right now. */
- ospf = ospf_lookup ();
- if (ospf == NULL)
- return;
-
- /* Update Area prefix-list. */
- for (node = listhead (ospf->areas); node; nextnode (node))
- {
- area = getdata (node);
-
- /* Update filter-list in. */
- if (PREFIX_NAME_IN (area))
- if (strcmp (PREFIX_NAME_IN (area), plist->name) == 0)
- {
- PREFIX_LIST_IN (area) =
- prefix_list_lookup (AFI_IP, PREFIX_NAME_IN (area));
- abr_inv++;
- }
-
- /* Update filter-list out. */
- if (PREFIX_NAME_OUT (area))
- if (strcmp (PREFIX_NAME_OUT (area), plist->name) == 0)
- {
- PREFIX_LIST_IN (area) =
- prefix_list_lookup (AFI_IP, PREFIX_NAME_OUT (area));
- abr_inv++;
- }
- }
-
- /* Schedule ABR tasks. */
- if (IS_OSPF_ABR (ospf) && abr_inv)
- ospf_schedule_abr_task (ospf);
-}
-
void
ospf_master_init ()
{
@@ -1691,10 +1648,3 @@ ospf_master_init ()
om->master = thread_master_create ();
om->start_time = time (NULL);
}
-
-void
-ospf_init ()
-{
- prefix_list_add_hook (ospf_prefix_list_update);
- prefix_list_delete_hook (ospf_prefix_list_update);
-}