summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhasso <hasso>2005-06-07 19:54:04 +0000
committerhasso <hasso>2005-06-07 19:54:04 +0000
commit1ddd729e6f20b93a635caece8c34ee1b7021fe26 (patch)
treee9bbe394bf37b142a6febb4b3097074a371764a6
parentf69bd9da8b1f7e0f297d4ffb370552fc41af3c81 (diff)
* ospf_apiserver.c: Fix obvious error in notifying clients about ISM
changes - oi->ifp->status doesn't give to us info about ISM, oi->state does. [backport candidate]
-rw-r--r--ospfd/ChangeLog6
-rw-r--r--ospfd/ospf_apiserver.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index 8717e897..b45739d9 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-07 Hasso Tepper <hasso at quagga.net>
+
+ * ospf_apiserver.c: Fix obvious error in notifying clients about ISM
+ changes - oi->ifp->status doesn't give to us info about ISM,
+ oi->state does.
+
2005-06-01 Akihiro Mizutani <mizutani@net-chef.net>
* ospf_ism.c (ospf_elect_bdr/ospf_elect_dr): Fix DR election bug.
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index f9df812c..b557d01c 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -2444,7 +2444,7 @@ ospf_apiserver_clients_notify_ism_change (struct ospf_interface *oi)
area_id = oi->area->area_id;
}
- msg = new_msg_ism_change (0, ifaddr, area_id, oi->ifp->status);
+ msg = new_msg_ism_change (0, ifaddr, area_id, oi->state);
if (!msg)
{
zlog_warn ("apiserver_clients_notify_ism_change: msg_new failed");