diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-20 07:10:47 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-20 07:10:47 -0800 |
| commit | 70d43d7cd31964f8b7c2908d93b186a4c3caf3db (patch) | |
| tree | 38ca2fc22e992f74e50ad647e5abf4bea704eb70 /lib/if.c | |
| parent | db7c85284f7a1c472da0e905a0020ed02d37f539 (diff) | |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.c')
| -rw-r--r-- | lib/if.c | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -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) |
