summaryrefslogtreecommitdiffstats
path: root/pimd/pimd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-20 16:34:04 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-01-04 18:21:00 +0100
commit36417fcc20b4a21b26a4e63902caca2eecbad4ed (patch)
treeda63cbef60f00c6ae2d61ad084ea3cab62d00f5f /pimd/pimd.h
parentzebra: Add test and show commands for mlag (diff)
downloadfrr-36417fcc20b4a21b26a4e63902caca2eecbad4ed.tar.xz
frr-36417fcc20b4a21b26a4e63902caca2eecbad4ed.zip
pimd: Create a `struct pim_router` and move thread master into it
Create a `struct pim_router` and move the thread master into it. Future commits will further move global varaibles into the pim_router structure. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pimd.h')
-rw-r--r--pimd/pimd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pimd/pimd.h b/pimd/pimd.h
index 1b11dc3f7..1dd363d2e 100644
--- a/pimd/pimd.h
+++ b/pimd/pimd.h
@@ -132,7 +132,7 @@ const char *const PIM_ALL_ROUTERS;
const char *const PIM_ALL_PIM_ROUTERS;
const char *const PIM_ALL_IGMP_ROUTERS;
-extern struct thread_master *master;
+extern struct pim_router *router;
extern struct zebra_privs_t pimd_privs;
uint32_t qpim_debugs;
struct in_addr qpim_all_pim_routers_addr;
@@ -237,6 +237,9 @@ extern int32_t qpim_register_probe_time;
#define PIM_DONT_DEBUG_PIM_NHT_RP (qpim_debugs &= ~PIM_MASK_PIM_NHT_RP)
#define PIM_DONT_DEBUG_MTRACE (qpim_debugs &= ~PIM_MASK_MTRACE)
+void pim_router_init(void);
+void pim_router_terminate(void);
+
void pim_init(void);
void pim_terminate(void);