summaryrefslogtreecommitdiff
path: root/bgpd/bgp_zebra.h
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_zebra.h')
-rw-r--r--bgpd/bgp_zebra.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/bgpd/bgp_zebra.h b/bgpd/bgp_zebra.h
index 84577e13..bd953864 100644
--- a/bgpd/bgp_zebra.h
+++ b/bgpd/bgp_zebra.h
@@ -21,24 +21,25 @@ Boston, MA 02111-1307, USA. */
#ifndef _QUAGGA_BGP_ZEBRA_H
#define _QUAGGA_BGP_ZEBRA_H
-int bgp_if_update_all ();
-int bgp_config_write_redistribute (struct vty *, struct bgp *, afi_t, safi_t,
+extern void bgp_zebra_init (void);
+extern int bgp_if_update_all (void);
+extern int bgp_config_write_redistribute (struct vty *, struct bgp *, afi_t, safi_t,
int *);
-void bgp_zebra_announce (struct prefix *, struct bgp_info *, struct bgp *);
-void bgp_zebra_withdraw (struct prefix *, struct bgp_info *);
-
-int bgp_redistribute_set (struct bgp *, afi_t, int);
-int bgp_redistribute_rmap_set (struct bgp *, afi_t, int, const char *);
-int bgp_redistribute_metric_set (struct bgp *, afi_t, int, u_int32_t);
-int bgp_redistribute_unset (struct bgp *, afi_t, int);
-int bgp_redistribute_routemap_unset (struct bgp *, afi_t, int);
-int bgp_redistribute_metric_unset (struct bgp *, afi_t, int);
-
-struct interface *if_lookup_by_ipv4 (struct in_addr *);
-struct interface *if_lookup_by_ipv4_exact (struct in_addr *);
+extern void bgp_zebra_announce (struct prefix *, struct bgp_info *, struct bgp *);
+extern void bgp_zebra_withdraw (struct prefix *, struct bgp_info *);
+
+extern int bgp_redistribute_set (struct bgp *, afi_t, int);
+extern int bgp_redistribute_rmap_set (struct bgp *, afi_t, int, const char *);
+extern int bgp_redistribute_metric_set (struct bgp *, afi_t, int, u_int32_t);
+extern int bgp_redistribute_unset (struct bgp *, afi_t, int);
+extern int bgp_redistribute_routemap_unset (struct bgp *, afi_t, int);
+extern int bgp_redistribute_metric_unset (struct bgp *, afi_t, int);
+
+extern struct interface *if_lookup_by_ipv4 (struct in_addr *);
+extern struct interface *if_lookup_by_ipv4_exact (struct in_addr *);
#ifdef HAVE_IPV6
-struct interface *if_lookup_by_ipv6 (struct in6_addr *);
-struct interface *if_lookup_by_ipv6_exact (struct in6_addr *);
+extern struct interface *if_lookup_by_ipv6 (struct in6_addr *);
+extern struct interface *if_lookup_by_ipv6_exact (struct in6_addr *);
#endif /* HAVE_IPV6 */
#endif /* _QUAGGA_BGP_ZEBRA_H */