summaryrefslogtreecommitdiffstats
path: root/lib/distribute.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 /lib/distribute.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 'lib/distribute.h')
-rw-r--r--lib/distribute.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/distribute.h b/lib/distribute.h
index 23d7cac57..35c5e0d6b 100644
--- a/lib/distribute.h
+++ b/lib/distribute.h
@@ -26,37 +26,37 @@
#include "filter.h"
/* Disctirubte list types. */
-enum distribute_type
-{
- DISTRIBUTE_V4_IN,
- DISTRIBUTE_V6_IN,
- DISTRIBUTE_V4_OUT,
- DISTRIBUTE_V6_OUT,
- DISTRIBUTE_MAX
+enum distribute_type {
+ DISTRIBUTE_V4_IN,
+ DISTRIBUTE_V6_IN,
+ DISTRIBUTE_V4_OUT,
+ DISTRIBUTE_V6_OUT,
+ DISTRIBUTE_MAX
};
-struct distribute
-{
- /* Name of the interface. */
- char *ifname;
+struct distribute {
+ /* Name of the interface. */
+ char *ifname;
- /* Filter name of `in' and `out' */
- char *list[DISTRIBUTE_MAX];
+ /* Filter name of `in' and `out' */
+ char *list[DISTRIBUTE_MAX];
- /* prefix-list name of `in' and `out' */
- char *prefix[DISTRIBUTE_MAX];
+ /* prefix-list name of `in' and `out' */
+ char *prefix[DISTRIBUTE_MAX];
};
/* Prototypes for distribute-list. */
-extern void distribute_list_init (int);
-extern void distribute_list_reset (void);
-extern void distribute_list_add_hook (void (*) (struct distribute *));
-extern void distribute_list_delete_hook (void (*) (struct distribute *));
-extern struct distribute *distribute_lookup (const char *);
-extern int config_write_distribute (struct vty *);
-extern int config_show_distribute (struct vty *);
-
-extern enum filter_type distribute_apply_in (struct interface *, struct prefix *);
-extern enum filter_type distribute_apply_out (struct interface *, struct prefix *);
+extern void distribute_list_init(int);
+extern void distribute_list_reset(void);
+extern void distribute_list_add_hook(void (*)(struct distribute *));
+extern void distribute_list_delete_hook(void (*)(struct distribute *));
+extern struct distribute *distribute_lookup(const char *);
+extern int config_write_distribute(struct vty *);
+extern int config_show_distribute(struct vty *);
+
+extern enum filter_type distribute_apply_in(struct interface *,
+ struct prefix *);
+extern enum filter_type distribute_apply_out(struct interface *,
+ struct prefix *);
#endif /* _ZEBRA_DISTRIBUTE_H */