summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_community.h
diff options
context:
space:
mode:
authorwhitespace / reindent <invalid@invalid.invalid>2017-07-17 14:03:14 +0200
committerwhitespace / reindent <invalid@invalid.invalid>2017-07-17 14:04:07 +0200
commitd62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch)
tree3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /bgpd/bgp_community.h
parent*: add indent control files (diff)
downloadfrr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.tar.xz
frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.zip
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_community.h')
-rw-r--r--bgpd/bgp_community.h67
1 files changed, 34 insertions, 33 deletions
diff --git a/bgpd/bgp_community.h b/bgpd/bgp_community.h
index cda079c13..c59eebf2e 100644
--- a/bgpd/bgp_community.h
+++ b/bgpd/bgp_community.h
@@ -24,23 +24,22 @@
#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 */