summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaravanank <saravanank@vmware.com>2019-05-01 17:20:04 -0700
committersaravanank <saravanank@vmware.com>2019-05-14 20:22:52 -0700
commite2d01c190da0bda7a80f6105e02b1e697b11298f (patch)
tree3376c9442c38cded8230d8119328b2327374649f
parent8bc1eeff7db71ea3f06edb29c5dbd6f2e0949ae6 (diff)
pimd: adding datastructure to accomodate to source of RP.
After the introduction of BSR Message processing, source of RP can be either static or BSR Message. Signed-off-by: Saravanan K <saravanank@vmware.com>
-rw-r--r--pimd/pim_rp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pimd/pim_rp.h b/pimd/pim_rp.h
index 402ec30aba..7ec45d3a3f 100644
--- a/pimd/pim_rp.h
+++ b/pimd/pim_rp.h
@@ -27,9 +27,16 @@
#include "pim_iface.h"
#include "pim_rpf.h"
+enum rp_source {
+ RP_SRC_NONE = 0,
+ RP_SRC_STATIC,
+ RP_SRC_BSR
+};
+
struct rp_info {
struct prefix group;
struct pim_rpf rp;
+ enum rp_source rp_src;
int i_am_rp;
char *plist;
};