]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_community.h
*: reindent
[mirror_frr.git] / bgpd / bgp_community.h
index cda079c1305ccf61ba441e968f0371004bbf58bf..c59eebf2e9adf7807d4ec2e2fcff7cc2d42507c0 100644 (file)
 #include "lib/json.h"
 
 /* Communities attribute.  */
-struct community 
-{
-  /* Reference count of communities value.  */
-  unsigned long refcnt;
+struct community {
+       /* Reference count of communities value.  */
+       unsigned long refcnt;
 
-  /* Communities value size.  */
-  int size;
+       /* Communities value size.  */
+       int size;
 
-  /* Communities value.  */
-  u_int32_t *val;
+       /* Communities value.  */
+       u_int32_t *val;
 
-  /* Communities as a json object */
-  json_object *json;
+       /* Communities as a json object */
+       json_object *json;
 
-  /* String of community attribute.  This sring is used by vty output
-     and expanded community-list for regular expression match.  */
-  char *str;
+       /* String of community attribute.  This sring is used by vty output
+          and expanded community-list for regular expression match.  */
+       char *str;
 };
 
 /* Well-known communities value.  */
@@ -56,25 +55,27 @@ struct community
 #define com_nthval(X,n)  ((X)->val + (n))
 
 /* Prototypes of communities attribute functions.  */
-extern void community_init (void);
-extern void community_finish (void);
-extern void community_free (struct community *);
-extern struct community *community_uniq_sort (struct community *);
-extern struct community *community_parse (u_int32_t *, u_short);
-extern struct community *community_intern (struct community *);
-extern void community_unintern (struct community **);
-extern char *community_str (struct community *);
-extern unsigned int community_hash_make (struct community *);
-extern struct community *community_str2com (const char *);
-extern int community_match (const struct community *, const struct community *);
-extern int community_cmp (const struct community *, const struct community *);
-extern struct community *community_merge (struct community *, struct community *);
-extern struct community *community_delete (struct community *, struct community *);
-extern struct community *community_dup (struct community *);
-extern int community_include (struct community *, u_int32_t);
-extern void community_del_val (struct community *, u_int32_t *);
-extern unsigned long community_count (void);
-extern struct hash *community_hash (void);
-extern u_int32_t community_val_get (struct community *com, int i);
+extern void community_init(void);
+extern void community_finish(void);
+extern void community_free(struct community *);
+extern struct community *community_uniq_sort(struct community *);
+extern struct community *community_parse(u_int32_t *, u_short);
+extern struct community *community_intern(struct community *);
+extern void community_unintern(struct community **);
+extern char *community_str(struct community *);
+extern unsigned int community_hash_make(struct community *);
+extern struct community *community_str2com(const char *);
+extern int community_match(const struct community *, const struct community *);
+extern int community_cmp(const struct community *, const struct community *);
+extern struct community *community_merge(struct community *,
+                                        struct community *);
+extern struct community *community_delete(struct community *,
+                                         struct community *);
+extern struct community *community_dup(struct community *);
+extern int community_include(struct community *, u_int32_t);
+extern void community_del_val(struct community *, u_int32_t *);
+extern unsigned long community_count(void);
+extern struct hash *community_hash(void);
+extern u_int32_t community_val_get(struct community *com, int i);
 
 #endif /* _QUAGGA_BGP_COMMUNITY_H */