]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_clist.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / bgpd / bgp_clist.h
index bb7c1363b2c4726a45429172d7a864e4e3c56143..7a9b28038c2c1ae5d5749fa6fde9f2e32cbd9c60 100644 (file)
@@ -1,21 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* BGP Community list.
  * Copyright (C) 1999 Kunihiro Ishiguro
- *
- * This file is part of GNU Zebra.
- *
- * GNU Zebra is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2, or (at your option) any
- * later version.
- *
- * GNU Zebra is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; see the file COPYING; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _QUAGGA_BGP_CLIST_H
@@ -137,7 +122,7 @@ extern struct community_list_handler *bgp_clist;
 
 /* Prototypes.  */
 extern struct community_list_handler *community_list_init(void);
-extern void community_list_terminate(struct community_list_handler *);
+extern void community_list_terminate(struct community_list_handler *ch);
 
 extern int community_list_set(struct community_list_handler *ch,
                              const char *name, const char *str,
@@ -160,21 +145,24 @@ extern int lcommunity_list_unset(struct community_list_handler *ch,
                                 const char *seq, int direct, int style);
 
 extern struct community_list_master *
-community_list_master_lookup(struct community_list_handler *, int);
+community_list_master_lookup(struct community_list_handler *ch, int master);
 
 extern struct community_list *
 community_list_lookup(struct community_list_handler *c, const char *name,
                      uint32_t name_hash, int master);
 
-extern bool community_list_match(struct community *, struct community_list *);
-extern bool ecommunity_list_match(struct ecommunity *, struct community_list *);
-extern bool lcommunity_list_match(struct lcommunity *, struct community_list *);
-extern bool community_list_exact_match(struct community *,
-                                      struct community_list *);
+extern bool community_list_match(struct community *com,
+                                struct community_list *list);
+extern bool ecommunity_list_match(struct ecommunity *ecom,
+                                 struct community_list *list);
+extern bool lcommunity_list_match(struct lcommunity *lcom,
+                                 struct community_list *list);
+extern bool community_list_exact_match(struct community *com,
+                                      struct community_list *list);
 extern bool lcommunity_list_exact_match(struct lcommunity *lcom,
                                        struct community_list *list);
-extern struct community *community_list_match_delete(struct community *,
-                                                    struct community_list *);
+extern struct community *
+community_list_match_delete(struct community *com, struct community_list *list);
 extern struct lcommunity *
 lcommunity_list_match_delete(struct lcommunity *lcom,
                             struct community_list *list);