Commit 8c0b12ac authored by Ondřej Zajíček's avatar Ondřej Zajíček

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.
parent ea59172c
Pipeline #43034 failed with stages
in 8 minutes and 27 seconds
......@@ -524,6 +524,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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment