summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-10 21:42:20 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-10 21:42:20 +0000
commit302c8d2456ca0a09ac1ff8c07dbd9ba569d85c80 (patch)
tree6165c4e3f986812545bcbf12952840a314a6d4ac /bgpd/bgp_zebra.c
parent224a85d77aea7077ce7aec038d7abe3bb3b049ea (diff)
parent122e52d3c6f844aceddf1b3b35885d0feae6650a (diff)
downloadquagga-302c8d2456ca0a09ac1ff8c07dbd9ba569d85c80.tar.bz2
quagga-302c8d2456ca0a09ac1ff8c07dbd9ba569d85c80.tar.xz
Merge branch 'master' of /git/quagga.euro-ix into pthreads
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 49380cc3..f3baeee0 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -639,39 +639,6 @@ bgp_nexthop_set (union sockunion *local, union sockunion *remote,
return ret;
}
-#ifdef HAVE_IPV6
-static unsigned int
-bgp_ifindex_by_nexthop (struct in6_addr *addr)
-{
- struct listnode *ifnode;
- struct listnode *cnode;
- struct interface *ifp;
- struct connected *connected;
- struct prefix_ipv6 p;
-
- p.family = AF_INET6;
- p.prefix = *addr;
- p.prefixlen = IPV6_MAX_BITLEN;
-
- for (ALL_LIST_ELEMENTS_RO (iflist, ifnode, ifp))
- {
- for (ALL_LIST_ELEMENTS_RO (ifp->connected, cnode, connected))
- {
- struct prefix *cp;
-
- cp = connected->address;
-
- if (cp->family == AF_INET6)
- {
- if (prefix_match (cp, (struct prefix *)&p))
- return ifp->ifindex;
- }
- }
- }
- return 0;
-}
-#endif /* HAVE_IPV6 */
-
void
bgp_zebra_announce (struct prefix *p, struct bgp_info *info, struct bgp *bgp)
{