summaryrefslogtreecommitdiff
path: root/pimd/pim_assert.h
diff options
context:
space:
mode:
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