summaryrefslogtreecommitdiff
path: root/pimd/test_igmpv3_join.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-07-28 17:23:48 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-28 07:27:47 -0400
commit5ef104fc4131cacaf1843bb32e19d4b681fc5214 (patch)
tree949ad77cae64df24ace365ed449eb48e38c8bf4d /pimd/test_igmpv3_join.c
parentd6f4a61dde127c6154f7933b0a4003740b6a0768 (diff)
pimd: relegate pim_igmp_join.c into a header file
pim_igmp_join.c only exists to make some portability hacks available to test_igmpv3_join. The function only has 1 call site in each pimd and the test tool, so it's nicely served as a simple static function in a header file. This removes a MTYPE related compiler/linker issue from referencing lib/if.h in a binary that doesn't link libzebra, as test_igmpv3_join is now fully independent of lib/. (Fix by Christian Franke: remove stray leftover ifindex_t) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/test_igmpv3_join.c')
-rw-r--r--pimd/test_igmpv3_join.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pimd/test_igmpv3_join.c b/pimd/test_igmpv3_join.c
index 6f1e34de88..fe64fbc005 100644
--- a/pimd/test_igmpv3_join.c
+++ b/pimd/test_igmpv3_join.c
@@ -30,10 +30,8 @@
#include <net/if.h>
#include <arpa/inet.h>
-#include "thread.h"
#include "pim_igmp_join.h"
-struct thread_master *master;
const char *prog_name = 0;
static int iface_solve_index(const char *ifname)