]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_rib.c
Zebra: Remove reliance on NEXTHOP_TYPE_IPV4_ONLINK
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 16 Nov 2015 20:48:07 +0000 (12:48 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 16 Nov 2015 20:48:07 +0000 (12:48 -0800)
commitd44ca835fc8000889a92b98af5a22b8139b2a3b7
tree712e5a01505fb20505cb0a5d5fad10077a73cdb6
parent25c38b240e56e41c0742c5260e72c1dd30dffbc7
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>
lib/zclient.c
lib/zclient.h
ospfd/ospf_zebra.c
zebra/connected.c
zebra/connected.h
zebra/rib.h
zebra/zebra_rib.c
zebra/zserv.c