summaryrefslogtreecommitdiff
path: root/pimd/pim_assert.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-08-19 11:36:16 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-08-27 10:41:23 +0200
commite34e07e640989bff120acc2954536e3471134f88 (patch)
tree1a3707044205877ad3b3228b3e9f316da9609015 /pimd/pim_assert.h
parent8268be3d16f1705f1ed4f1bdc0bb4ba538a6285d (diff)
pimd: de-circularize includes
pimd's include files are very interdependent. Let's chop that down a bit to gain some flexibility. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_assert.h')
-rw-r--r--pimd/pim_assert.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/pimd/pim_assert.h b/pimd/pim_assert.h
index 63fda3fe34..c07cbeb013 100644
--- a/pimd/pim_assert.h
+++ b/pimd/pim_assert.h
@@ -24,8 +24,22 @@
#include "if.h"
-#include "pim_neighbor.h"
-#include "pim_ifchannel.h"
+struct pim_ifchannel;
+struct pim_neighbor;
+
+enum pim_ifassert_state {
+ PIM_IFASSERT_NOINFO,
+ PIM_IFASSERT_I_AM_WINNER,
+ PIM_IFASSERT_I_AM_LOSER
+};
+
+struct pim_assert_metric {
+ uint32_t rpt_bit_flag;
+ uint32_t metric_preference;
+ uint32_t route_metric;
+ struct in_addr ip_address; /* neighbor router that sourced the Assert
+ message */
+};
/*
RFC 4601: 4.11. Timer Values