diff options
| author | vivek <vivek@cumulusnetworks.com> | 2015-11-20 08:51:48 -0800 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2015-11-20 08:51:48 -0800 |
| commit | 922705ecdccad98dcb5eb8dcb37394ec339afe51 (patch) | |
| tree | b2db1f62de86768be5edc4658bff5f345282cc89 /lib/if.c | |
| parent | 41ec92223a7dfc14eb8cb0b84c73ad09943213eb (diff) | |
| parent | 8afc891ac75f2b1f17d9190ef8de5378ec55fcd5 (diff) | |
Merge branch 'cmaster' of ssh://stash.cumulusnetworks.com:7999/quag/quagga into cmaster
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) |
