summaryrefslogtreecommitdiff
path: root/bgpd/bgp_clist.h
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_clist.h')
-rw-r--r--bgpd/bgp_clist.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/bgpd/bgp_clist.h b/bgpd/bgp_clist.h
index ffc707c2..11db2d71 100644
--- a/bgpd/bgp_clist.h
+++ b/bgpd/bgp_clist.h
@@ -121,22 +121,24 @@ extern struct community_list_handler *bgp_clist;
/* Prototypes. */
struct community_list_handler *community_list_init ();
-int community_list_set (struct community_list_handler *ch,
- char *name, char *str, int direct, int style);
-int community_list_unset (struct community_list_handler *ch,
- char *name, char *str, int direct, int style);
-int extcommunity_list_set (struct community_list_handler *ch,
- char *name, char *str, int direct, int style);
-int extcommunity_list_unset (struct community_list_handler *ch,
- char *name, char *str, int direct, int style);
+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 *
community_list_master_lookup (struct community_list_handler *, int);
struct community_list *
-community_list_lookup (struct community_list_handler *, char *, int);
+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 *,