diff options
Diffstat (limited to 'bgpd/bgp_lcommunity.h')
| -rw-r--r-- | bgpd/bgp_lcommunity.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/bgpd/bgp_lcommunity.h b/bgpd/bgp_lcommunity.h index e401c8d8f3..1a3304e719 100644 --- a/bgpd/bgp_lcommunity.h +++ b/bgpd/bgp_lcommunity.h @@ -30,45 +30,45 @@ #define LCOMMUNITY_SIZE 12 /* Large Communities attribute. */ -struct lcommunity -{ - /* Reference counter. */ - unsigned long refcnt; +struct lcommunity { + /* Reference counter. */ + unsigned long refcnt; - /* Size of Extended Communities attribute. */ - int size; + /* Size of Extended Communities attribute. */ + int size; - /* Extended Communities value. */ - u_int8_t *val; + /* Extended Communities value. */ + u_int8_t *val; - /* Human readable format string. */ - char *str; + /* Human readable format string. */ + char *str; }; /* Extended community value is eight octet. */ -struct lcommunity_val -{ - char val[LCOMMUNITY_SIZE]; +struct lcommunity_val { + char val[LCOMMUNITY_SIZE]; }; #define lcom_length(X) ((X)->size * LCOMMUNITY_SIZE) -extern void lcommunity_init (void); -extern void lcommunity_finish (void); -extern void lcommunity_free (struct lcommunity **); -extern struct lcommunity *lcommunity_parse (u_int8_t *, u_short); -extern struct lcommunity *lcommunity_dup (struct lcommunity *); -extern struct lcommunity *lcommunity_merge (struct lcommunity *, struct lcommunity *); -extern struct lcommunity *lcommunity_uniq_sort (struct lcommunity *); -extern struct lcommunity *lcommunity_intern (struct lcommunity *); -extern int lcommunity_cmp (const void *, const void *); -extern void lcommunity_unintern (struct lcommunity **); -extern unsigned int lcommunity_hash_make (void *); -extern struct hash *lcommunity_hash (void); -extern struct lcommunity *lcommunity_str2com (const char *); -extern char *lcommunity_lcom2str (struct lcommunity *, int); -extern int lcommunity_match (const struct lcommunity *, const struct lcommunity *); -extern char *lcommunity_str (struct lcommunity *); -extern int lcommunity_include (struct lcommunity *lcom, u_char *ptr); -extern void lcommunity_del_val (struct lcommunity *lcom, u_char *ptr); +extern void lcommunity_init(void); +extern void lcommunity_finish(void); +extern void lcommunity_free(struct lcommunity **); +extern struct lcommunity *lcommunity_parse(u_int8_t *, u_short); +extern struct lcommunity *lcommunity_dup(struct lcommunity *); +extern struct lcommunity *lcommunity_merge(struct lcommunity *, + struct lcommunity *); +extern struct lcommunity *lcommunity_uniq_sort(struct lcommunity *); +extern struct lcommunity *lcommunity_intern(struct lcommunity *); +extern int lcommunity_cmp(const void *, const void *); +extern void lcommunity_unintern(struct lcommunity **); +extern unsigned int lcommunity_hash_make(void *); +extern struct hash *lcommunity_hash(void); +extern struct lcommunity *lcommunity_str2com(const char *); +extern char *lcommunity_lcom2str(struct lcommunity *, int); +extern int lcommunity_match(const struct lcommunity *, + const struct lcommunity *); +extern char *lcommunity_str(struct lcommunity *); +extern int lcommunity_include(struct lcommunity *lcom, u_char *ptr); +extern void lcommunity_del_val(struct lcommunity *lcom, u_char *ptr); #endif /* _QUAGGA_BGP_LCOMMUNITY_H */ |
