diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 02:58:13 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 02:58:13 +0200 |
commit | 525c183906c47c491611f294db218d53a561a3b9 (patch) | |
tree | be3eae87696fd7713622a0df97a591d37686282d /ospfd/ospf_route.c | |
parent | onlink commit from Quagga-RE branch (diff) | |
download | frr-525c183906c47c491611f294db218d53a561a3b9.tar.xz frr-525c183906c47c491611f294db218d53a561a3b9.zip |
Unnumbered interface support.
Diffstat (limited to 'ospfd/ospf_route.c')
-rw-r--r-- | ospfd/ospf_route.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c index eb7829acd..7efba7a8c 100644 --- a/ospfd/ospf_route.c +++ b/ospfd/ospf_route.c @@ -611,6 +611,8 @@ ospf_intra_add_stub (struct route_table *rt, struct router_lsa_link *link, path = ospf_path_new (); path->nexthop.s_addr = 0; path->ifindex = oi->ifp->ifindex; + if (CHECK_FLAG(oi->connected->flags, ZEBRA_IFA_UNNUMBERED)) + path->unnumbered = 1; listnode_add (or->paths, path); } else @@ -783,6 +785,8 @@ ospf_route_copy_nexthops_from_vertex (struct ospf_route *to, path = ospf_path_new (); path->nexthop = nexthop->router; path->ifindex = nexthop->oi->ifp->ifindex; + if (CHECK_FLAG(nexthop->oi->connected->flags, ZEBRA_IFA_UNNUMBERED)) + path->unnumbered = 1; listnode_add (to->paths, path); } } |