0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

OSPF ifaces on loopback should be stub.

This commit is contained in:
Ondrej Zajicek 2013-11-24 22:12:51 +01:00
parent e4d179f2c2
commit c72aca41e5

View File

@ -472,10 +472,14 @@ ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr)
if (! addr) if (! addr)
return 0; return 0;
/* a host/loopback address */ /* a host address */
if (addr->flags & IA_HOST) if (addr->flags & IA_HOST)
return 1; return 1;
/* a loopback iface */
if (addr->iface->flags & IF_LOOPBACK)
return 1;
/* /*
* We cannot properly support multiple OSPF ifaces on real iface * We cannot properly support multiple OSPF ifaces on real iface
* with multiple prefixes, therefore we force OSPF ifaces with * with multiple prefixes, therefore we force OSPF ifaces with