summaryrefslogtreecommitdiffstats
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-12-28 01:43:07 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-12-28 01:43:07 +0100
commite7b4948cbd3e4cacf4fe0f774b44d1f74029ea6d (patch)
tree7b4677b6eba5487ecf1c77ca21880ad0d3556617 /proto/ospf/iface.c
parent919f5411c48f509a49400a1293e670f5d5d2bcf1 (diff)
downloadbird-e7b4948cbd3e4cacf4fe0f774b44d1f74029ea6d.tar
bird-e7b4948cbd3e4cacf4fe0f774b44d1f74029ea6d.zip
A simplification of the next-hop calculation.
Thanks to Joakim Tjernlund for the idea.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r--proto/ospf/iface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 05442df..e7c9e72 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -197,6 +197,13 @@ ospf_iface_down(struct ospf_iface *ifa)
ifa->cost = 0;
ifa->vip = IPA_NONE;
}
+
+ ifa->rt_pos_beg = 0;
+ ifa->rt_pos_end = 0;
+#ifdef OSPFv3
+ ifa->px_pos_beg = 0;
+ ifa->px_pos_end = 0;
+#endif
}