Move the qpim_mroute_socket_reader thread to pim_mroute.c
and make it static to the file.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
/* GLOBAL VARS */
extern struct zebra_privs_t pimd_privs;
+static struct thread *qpim_mroute_socket_reader = NULL;
+
static void mroute_read_on(void);
static int pim_mroute_set(int fd, int enable)
result = mroute_read_msg(fd);
/* Keep reading */
- qpim_mroute_socket_reader = 0;
+ qpim_mroute_socket_reader = NULL;
mroute_read_on();
return result;
uint32_t qpim_debugs = 0;
int qpim_mroute_socket_fd = -1;
int64_t qpim_mroute_socket_creation = 0; /* timestamp of creation */
-struct thread *qpim_mroute_socket_reader = NULL;
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;
uint32_t qpim_debugs;
int qpim_mroute_socket_fd;
int64_t qpim_mroute_socket_creation; /* timestamp of creation */
-struct thread *qpim_mroute_socket_reader;
int qpim_mroute_oif_highest_vif_index;
struct in_addr qpim_all_pim_routers_addr;
int qpim_t_periodic; /* Period between Join/Prune Messages */