summaryrefslogtreecommitdiffstats
path: root/babeld/route.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-18 20:08:34 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commite33b116cdf983c81fdb1b9716684a888b870899b (patch)
tree38055319f156ee153f412020c5058a5d17d27efb /babeld/route.h
parentbabeld: Add BABEL_ERR_XXX error messages. (diff)
downloadfrr-e33b116cdf983c81fdb1b9716684a888b870899b.tar.xz
frr-e33b116cdf983c81fdb1b9716684a888b870899b.zip
babeld: Convert all zlog_err to zlog_ferr and add appropriate info
Convert babeld to use zlog_ferr and add appropriate BABEL_ERR_XXX information. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld/route.h')
-rw-r--r--babeld/route.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/babeld/route.h b/babeld/route.h
index c2026d176..c994d22a9 100644
--- a/babeld/route.h
+++ b/babeld/route.h
@@ -27,10 +27,12 @@ THE SOFTWARE.
#include "babel_interface.h"
#include "source.h"
-#define DIVERSITY_NONE 0
-#define DIVERSITY_INTERFACE_1 1
-#define DIVERSITY_CHANNEL_1 2
-#define DIVERSITY_CHANNEL 3
+enum babel_diversity {
+ DIVERSITY_NONE,
+ DIVERSITY_INTERFACE_1,
+ DIVERSITY_CHANNEL_1,
+ DIVERSITY_CHANNEL,
+};
#define DIVERSITY_HOPS 8
@@ -55,7 +57,8 @@ struct route_stream;
extern struct babel_route **routes;
extern int kernel_metric;
-extern int diversity_kind, diversity_factor;
+extern enum babel_diversity diversity_kind;
+extern int diversity_factor;
extern int keep_unfeasible;
extern int smoothing_half_life;