summaryrefslogtreecommitdiff
path: root/ospfd/ospf_interface.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2018-03-08 19:04:08 -0300
committerGitHub <noreply@github.com>2018-03-08 19:04:08 -0300
commit1ffd1bcf86fde9c0642475ac3519767907fab721 (patch)
tree12e29b3977ced79c9dfab8bb642b2f5df941e8b6 /ospfd/ospf_interface.c
parent4012dd88800d59e875600b960683b24fc8e3b65d (diff)
parent0c74bbe03e7e47af698e3f74a4eddec190193063 (diff)
Merge pull request #1843 from chiragshah6/ospf_vrf_dev
zebra/ospfd: Treat vrf interface similar to loopback
Diffstat (limited to 'ospfd/ospf_interface.c')
-rw-r--r--ospfd/ospf_interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c
index e19bfe7f55..0305305b81 100644
--- a/ospfd/ospf_interface.c
+++ b/ospfd/ospf_interface.c
@@ -459,7 +459,7 @@ struct ospf_interface *ospf_if_lookup_recv_if(struct ospf *ospf,
if (oi->type == OSPF_IFTYPE_VIRTUALLINK)
continue;
- if (if_is_loopback(oi->ifp))
+ if (if_is_loopback(oi->ifp) || if_is_vrf(oi->ifp))
continue;
if (CHECK_FLAG(oi->connected->flags, ZEBRA_IFA_UNNUMBERED))
@@ -703,7 +703,7 @@ static int ospf_if_delete_hook(struct interface *ifp)
int ospf_if_is_enable(struct ospf_interface *oi)
{
- if (!if_is_loopback(oi->ifp))
+ if (!(if_is_loopback(oi->ifp) || if_is_vrf(oi->ifp)))
if (if_is_up(oi->ifp))
return 1;
@@ -1206,7 +1206,7 @@ u_char ospf_default_iftype(struct interface *ifp)
{
if (if_is_pointopoint(ifp))
return OSPF_IFTYPE_POINTOPOINT;
- else if (if_is_loopback(ifp))
+ else if (if_is_loopback(ifp) || if_is_vrf(ifp))
return OSPF_IFTYPE_LOOPBACK;
else
return OSPF_IFTYPE_BROADCAST;