summaryrefslogtreecommitdiffstats
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-05-02 19:58:34 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-05-02 19:58:34 +0200
commit6384c7d7aa85d1e593eca30cda48f6677b023cb0 (patch)
tree6c926854e331ab87fe98d6dca9c95c708843a086 /proto/ospf/iface.c
parentba321706578de8402d50214a9e79a65835cdd821 (diff)
downloadbird-6384c7d7aa85d1e593eca30cda48f6677b023cb0.tar
bird-6384c7d7aa85d1e593eca30cda48f6677b023cb0.zip
OSPF: most of summary LSA orig./flush logic rewritten.
Fixes many bugs in the old code and makes it much cleaner.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r--proto/ospf/iface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 6faed3a..ae7b80c 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -236,11 +236,11 @@ ospf_iface_down(struct ospf_iface *ifa)
struct proto *p = &po->proto;
struct ospf_iface *iff;
- OSPF_TRACE(D_EVENTS, "Removing interface %s", ifa->iface->name);
-
- /* First of all kill all the related vlinks */
if (ifa->type != OSPF_IT_VLINK)
{
+ OSPF_TRACE(D_EVENTS, "Removing interface %s", ifa->iface->name);
+
+ /* First of all kill all the related vlinks */
WALK_LIST(iff, po->iface_list)
{
if ((iff->type == OSPF_IT_VLINK) && (iff->vifa == ifa))