diff options
author | paul <paul> | 2003-04-04 02:35:27 +0000 |
---|---|---|
committer | paul <paul> | 2003-04-04 02:35:27 +0000 |
commit | 81b3c9c636807877beaeed741ab8fef764959ab1 (patch) | |
tree | f79070fc938ed467c7e16f5a5bbd71e4b38f87f7 /ospfd/ospf_asbr.c | |
parent | ef43a3dc3618e2e7836a9bf76572a69d94c4b4fe (diff) | |
download | quagga-zebra_org_20030404.tar.bz2 quagga-zebra_org_20030404.tar.xz |
Import of Zebra CVS 20030404-03:35zebra_org_20030404
Diffstat (limited to 'ospfd/ospf_asbr.c')
-rw-r--r-- | ospfd/ospf_asbr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c index c5d199fb..fda32ae1 100644 --- a/ospfd/ospf_asbr.c +++ b/ospfd/ospf_asbr.c @@ -245,7 +245,7 @@ ospf_asbr_status_update (struct ospf *ospf, u_char status) if (status) { /* Already ASBR. */ - if (OSPF_IS_ASBR) + if (IS_OSPF_ASBR (ospf)) { zlog_info ("ASBR[Status:%d]: Already ASBR", status); return; @@ -255,7 +255,7 @@ ospf_asbr_status_update (struct ospf *ospf, u_char status) else { /* Already non ASBR. */ - if (! OSPF_IS_ASBR) + if (! IS_OSPF_ASBR (ospf)) { zlog_info ("ASBR[Status:%d]: Already non ASBR", status); return; @@ -272,10 +272,12 @@ ospf_asbr_status_update (struct ospf *ospf, u_char status) void ospf_redistribute_withdraw (u_char type) { - struct ospf *ospf = ospf_top; + struct ospf *ospf; struct route_node *rn; struct external_info *ei; + ospf = ospf_lookup (); + /* Delete external info for specified type. */ if (EXTERNAL_INFO (type)) for (rn = route_top (EXTERNAL_INFO (type)); rn; rn = route_next (rn)) |