diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-12-10 11:57:05 +0300 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2009-12-10 11:57:05 +0300 |
commit | 9e4ca89c3678431560a8259c75f8b5874d83d351 (patch) | |
tree | 178ca0de4c6fe5ecba90b51c5fb29c3e0b720cdb /bgpd/bgp_zebra.c | |
parent | cc2dd9280c4456586080d1cf4537d26c02fa9a36 (diff) |
bgpd: compile warnings cleanup
* bgpd/bgp_fsm.c
* bgp_clearing_completed(): only used in one file, can be static
* bgpd/bgp_packet.c
* afi2str(): sayonara
* safi2str(): sayonara
* bgpd/bgp_route.c
* bgp_distance_reset(): sayonara
* bgpd/bgp_zebra.c
* bgp_ifindex_by_nexthop(): sayonara
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r-- | bgpd/bgp_zebra.c | 33 |
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) { |