summaryrefslogtreecommitdiff
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-10-31 17:14:35 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2012-10-31 17:14:35 +0100
commitdd4da6f640fb581cbd7d1ca537bf382558492b8e (patch)
tree13584e9c9e5f9bd30022563a0257db25f96b74b0 /proto/ospf/iface.c
parent8249ad9b304ea88b29e3aea76ebe49bb50348aaa (diff)
Fixes another bug in OSPFv3 vlinks.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r--proto/ospf/iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index a6a0c6c1..aa7f7892 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -567,6 +567,8 @@ ospf_iface_new(struct ospf_area *oa, struct ifa *addr, struct ospf_iface_patt *i
log(L_WARN "%s: Cannot use interface %s as %s, forcing %s",
p->name, iface->name, ospf_it[old_type], ospf_it[ifa->type]);
+ /* Assign iface ID, for vlinks, this is ugly hack */
+ ifa->iface_id = (ifa->type != OSPF_IT_VLINK) ? iface->index : oa->po->last_vlink_id++;
init_list(&ifa->neigh_list);
init_list(&ifa->nbma_list);