diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-16 21:48:07 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-16 21:48:07 +0100 |
commit | d44ca835fc8000889a92b98af5a22b8139b2a3b7 (patch) | |
tree | 712e5a01505fb20505cb0a5d5fad10077a73cdb6 /zebra/connected.h | |
parent | BGP: Fix nexthop registration churn (diff) | |
download | frr-d44ca835fc8000889a92b98af5a22b8139b2a3b7.tar.xz frr-d44ca835fc8000889a92b98af5a22b8139b2a3b7.zip |
Zebra: Remove reliance on NEXTHOP_TYPE_IPV4_ONLINK
Zebra already knows if an interface is unnumbered or not. This
is communicated to OSPF.
OSPF would only send a NEXTHOP_TYPE_IPV4_ONLINK *if* the path
was unnumbered, which it learns from Zebra.
As such, Have OSPF use the normal NEXTHOP_TYPE_IPV4_IFINDEX
type for unnumbered paths. In Zebra, if the ifindex recieved
is unnumbered then assume that the link is NEXTHOP_FLAG_ONLINK.
Ticket: CM-8145
Reviewed-by: CCR-3771
Testing: See bug
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/connected.h')
-rw-r--r-- | zebra/connected.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/connected.h b/zebra/connected.h index 55709440c..f35f47fb6 100644 --- a/zebra/connected.h +++ b/zebra/connected.h @@ -55,4 +55,6 @@ extern void connected_down_ipv6 (struct interface *ifp, struct connected *); #endif /* HAVE_IPV6 */ +extern int connected_is_unnumbered (struct interface *); + #endif /*_ZEBRA_CONNECTED_H */ |