summaryrefslogtreecommitdiff
path: root/bgpd/bgp_clist.h
diff options
context:
space:
mode:
authorpaul <paul>2005-06-28 12:44:16 +0000
committerpaul <paul>2005-06-28 12:44:16 +0000
commit94f2b3923e9663d0355a829f22e4e31cf68ee7b8 (patch)
tree59c0291a76b1c97fbb089abb479307f19cdfd4c1 /bgpd/bgp_clist.h
parent7cad40007b9714dba65065916ea68577f9d3d6dd (diff)
2005-06-28 Paul Jakma <paul.jakma@sun.com>
* (global) The great bgpd extern and static'ification. * bgp_routemap.c: remove unused ROUTE_MATCH_ASPATH_OLD code (route_set_metric_compile) fix u_int32_t to ULONG_MAX comparison warnings. * bgp_route.h: (bgp_process, bgp_withdraw, bgp_update) export these used by various files which had their own private declarations, in the case of mplsvpn - incorrect.
Diffstat (limited to 'bgpd/bgp_clist.h')
-rw-r--r--bgpd/bgp_clist.h43
1 files changed, 23 insertions, 20 deletions
diff --git a/bgpd/bgp_clist.h b/bgpd/bgp_clist.h
index ad6491ee..6d7e363e 100644
--- a/bgpd/bgp_clist.h
+++ b/bgpd/bgp_clist.h
@@ -124,29 +124,32 @@ struct community_list_handler
extern struct community_list_handler *bgp_clist;
/* Prototypes. */
-struct community_list_handler *community_list_init ();
-
-int community_list_set (struct community_list_handler *ch, const char *name,
- const char *str, int direct, int style);
-int community_list_unset (struct community_list_handler *ch, const char *name,
- const char *str, int direct, int style);
-int extcommunity_list_set (struct community_list_handler *ch, const char *name,
- const char *str, int direct, int style);
-int extcommunity_list_unset (struct community_list_handler *ch,
- const char *name, const char *str,
- int direct, int style);
-
-struct community_list_master *
+extern struct community_list_handler *community_list_init (void);
+
+extern int community_list_set (struct community_list_handler *ch,
+ const char *name, const char *str, int direct,
+ int style);
+extern int community_list_unset (struct community_list_handler *ch,
+ const char *name, const char *str,
+ int direct, int style);
+extern int extcommunity_list_set (struct community_list_handler *ch,
+ const char *name, const char *str,
+ int direct, int style);
+extern int extcommunity_list_unset (struct community_list_handler *ch,
+ const char *name, const char *str,
+ int direct, int style);
+
+extern struct community_list_master *
community_list_master_lookup (struct community_list_handler *, int);
-struct community_list *
+extern struct community_list *
community_list_lookup (struct community_list_handler *, const char *, int);
-int community_list_match (struct community *, struct community_list *);
-int ecommunity_list_match (struct ecommunity *, struct community_list *);
-int community_list_exact_match (struct community *, struct community_list *);
-struct community *
-community_list_match_delete (struct community *,
- struct community_list *);
+extern int community_list_match (struct community *, struct community_list *);
+extern int ecommunity_list_match (struct ecommunity *, struct community_list *);
+extern int community_list_exact_match (struct community *,
+ struct community_list *);
+extern struct community *
+community_list_match_delete (struct community *, struct community_list *);
#endif /* _QUAGGA_BGP_CLIST_H */