summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_routemap.c
diff options
context:
space:
mode:
authorpaul <paul>2003-03-25 02:37:13 +0000
committerpaul <paul>2003-03-25 02:37:13 +0000
commitef43a3dc3618e2e7836a9bf76572a69d94c4b4fe (patch)
tree43cb538ffcec64986b211e31f43fae08b1bfefba /ospfd/ospf_routemap.c
parent8a3864b2f7268f4016b6cbb81c6e05b10e684140 (diff)
downloadquagga-ef43a3dc3618e2e7836a9bf76572a69d94c4b4fe.tar.bz2
quagga-ef43a3dc3618e2e7836a9bf76572a69d94c4b4fe.tar.xz
Import of Zebra CVS 20030325-02:30zebra_org_20030325
Diffstat (limited to 'ospfd/ospf_routemap.c')
-rw-r--r--ospfd/ospf_routemap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ospfd/ospf_routemap.c b/ospfd/ospf_routemap.c
index a2b257fa..a4d05a13 100644
--- a/ospfd/ospf_routemap.c
+++ b/ospfd/ospf_routemap.c
@@ -43,10 +43,11 @@
void
ospf_route_map_update (char *name)
{
+ struct ospf *ospf = ospf_top;
int type;
/* If OSPF instatnce does not exist, return right now. */
- if (!ospf_top)
+ if (ospf == NULL)
return;
/* Update route-map */
@@ -64,7 +65,7 @@ ospf_route_map_update (char *name)
if (old == NULL && ROUTEMAP (type) == NULL)
continue;
- ospf_distribute_list_update (type);
+ ospf_distribute_list_update (ospf, type);
}
}
}
@@ -72,10 +73,11 @@ ospf_route_map_update (char *name)
void
ospf_route_map_event (route_map_event_t event, char *name)
{
+ struct ospf *ospf = ospf_top;
int type;
/* If OSPF instatnce does not exist, return right now. */
- if (!ospf_top)
+ if (ospf == NULL)
return;
/* Update route-map. */
@@ -84,7 +86,7 @@ ospf_route_map_event (route_map_event_t event, char *name)
if (ROUTEMAP_NAME (type) && ROUTEMAP (type) &&
!strcmp (ROUTEMAP_NAME (type), name))
{
- ospf_distribute_list_update (type);
+ ospf_distribute_list_update (ospf, type);
}
}
}