summaryrefslogtreecommitdiffstats
path: root/pimd/pimd.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-01-31 15:26:07 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-01-31 15:26:07 +0100
commit26df3a33ae91edfdb5b69817050f773c430001ff (patch)
tree8acc261a95b39eaf94214e3f901d8a63ea60356f /pimd/pimd.c
parentMerge branch 'frr/pull/137' (diff)
parentzebra: Do not force NEXTHOP_TYPE to XXX_IFINDEX (diff)
downloadfrr-26df3a33ae91edfdb5b69817050f773c430001ff.tar.xz
frr-26df3a33ae91edfdb5b69817050f773c430001ff.zip
Merge branch 'frr/pull/133' ("Pim cleanup")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pimd.c')
-rw-r--r--pimd/pimd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c
index e8960916a..2316cd08f 100644
--- a/pimd/pimd.c
+++ b/pimd/pimd.c
@@ -39,6 +39,7 @@
#include "pim_ssmpingd.h"
#include "pim_static.h"
#include "pim_rp.h"
+#include "pim_zlookup.h"
const char *const PIM_ALL_SYSTEMS = MCAST_ALL_SYSTEMS;
const char *const PIM_ALL_ROUTERS = MCAST_ALL_ROUTERS;
@@ -49,9 +50,7 @@ struct thread_master *master = NULL;
uint32_t qpim_debugs = 0;
int qpim_mroute_socket_fd = -1;
int64_t qpim_mroute_socket_creation = 0; /* timestamp of creation */
-int qpim_mroute_oif_highest_vif_index = -1;
int qpim_t_periodic = PIM_DEFAULT_T_PERIODIC; /* Period between Join/Prune Messages */
-struct zclient *qpim_zclient_update = NULL;
struct pim_assert_metric qpim_infinite_assert_metric;
long qpim_rpf_cache_refresh_delay_msec = 50;
struct thread *qpim_rpf_cache_refresher = NULL;
@@ -91,6 +90,10 @@ static void pim_free()
pim_rp_free ();
pim_route_map_terminate();
+
+ zclient_lookup_free ();
+
+ zprivs_terminate(&pimd_privs);
}
void pim_init()
@@ -122,7 +125,6 @@ void pim_init()
qpim_static_route_list->del = (void (*)(void *)) pim_static_route_free;
qpim_mroute_socket_fd = -1; /* mark mroute as disabled */
- qpim_mroute_oif_highest_vif_index = -1;
qpim_inaddr_any.s_addr = PIM_NET_INADDR_ANY;