summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-12-10 02:11:42 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-12-10 02:15:06 +0100
commitbaeacdcfd3ce30b3fa89ebdd4e53c60c38c26c31 (patch)
treede6e4d53c18d39a53300f1b432c0cd0db0dbe87f /proto/ospf
parent9a5ef043c11ad9fba00557dedcc0d7ae0d2794e9 (diff)
OSPF: Fix reconfiguration of vlinks
Fix crash during reconfiguration of OSPF config with vlinks. When vlink is reconfigured, a generic iface-reconfiguration code is used, which in one place supposes that it is running on a regular iface. Thanks to Cybertinus for a bugreport.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/iface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 54a355b6..388c91c8 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -531,6 +531,10 @@ add_nbma_node(struct ospf_iface *ifa, struct nbma_node *src, int found)
static int
ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr)
{
+ /* vlink cannot be stub */
+ if (ip->type == OSPF_IT_VLINK)
+ return 0;
+
/* a host address */
if (addr->flags & IA_HOST)
return 1;