Skip to content
Snippets Groups Projects
Commit 8c0b12ac authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

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
No related branches found
No related tags found
No related merge requests found
Pipeline #43034 failed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment