From 70d43d7cd31964f8b7c2908d93b186a4c3caf3db Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 20 Nov 2015 07:10:47 -0800 Subject: Quagga: Fixup decision about what an unnumbered interface is This Change modifies what zebra thinks is an unnumbered interface. If the interface is not a loopback and the prefixlength for the interface is 32 than consider this an unnumbered interface. Ticket: CM-8016 Reviewed by: CCR-3827 Testing: Full Regression Suites Signed-off-by: Donald Sharp --- lib/if.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index b192d48e20..d4bd918e95 100644 --- a/lib/if.c +++ b/lib/if.c @@ -383,36 +383,6 @@ if_lookup_address (void *matchaddr, int family) return if_lookup_address_vrf (matchaddr, family, VRF_DEFAULT); } -/* Lookup anchor interface by IPv4 address. */ -struct connected * -if_anchor_lookup_by_address (struct in_addr src) -{ - struct listnode *node; - struct listnode *cnode; - struct interface *ifp; - struct prefix *p; - struct connected *c; - - for (ALL_LIST_ELEMENTS_RO (iflist, node, ifp)) - { - for (ALL_LIST_ELEMENTS_RO (ifp->connected, cnode, c)) - { - if (CHECK_FLAG(c->flags, ZEBRA_IFA_UNNUMBERED) || - !CHECK_FLAG(c->conf, ZEBRA_IFC_REAL)) - continue; - - p = c->address; - - if (p && p->family == AF_INET) - { - if (IPV4_ADDR_SAME (&p->u.prefix4, &src)) - return c; - } - } - } - return NULL; -} - /* Lookup interface by prefix */ struct interface * if_lookup_prefix_vrf (struct prefix *prefix, vrf_id_t vrf_id) -- cgit v1.2.3