summaryrefslogtreecommitdiff
path: root/pimd/pim_iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'pimd/pim_iface.c')
-rw-r--r--pimd/pim_iface.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c
index 98fa4c4882..4470d05663 100644
--- a/pimd/pim_iface.c
+++ b/pimd/pim_iface.c
@@ -187,9 +187,7 @@ struct pim_interface *pim_if_new(struct interface *ifp, bool igmp, bool pim,
ifp->info = pim_ifp;
-#if PIM_IPV == 4
pim_sock_reset(ifp);
-#endif
pim_if_add_vif(ifp, ispimreg, is_vxlan_term);
pim_ifp->pim->mcast_if_count++;
@@ -1282,6 +1280,7 @@ static int igmp_join_sock(const char *ifname, ifindex_t ifindex,
return join_fd;
}
+#if PIM_IPV == 4
static struct gm_join *igmp_join_new(struct interface *ifp,
struct in_addr group_addr,
struct in_addr source_addr)
@@ -1320,7 +1319,9 @@ static struct gm_join *igmp_join_new(struct interface *ifp,
return ij;
}
+#endif /* PIM_IPV == 4 */
+#if PIM_IPV == 4
ferr_r pim_if_igmp_join_add(struct interface *ifp, struct in_addr group_addr,
struct in_addr source_addr)
{
@@ -1362,7 +1363,7 @@ ferr_r pim_if_igmp_join_add(struct interface *ifp, struct in_addr group_addr,
return ferr_ok();
}
-
+#endif /* PIM_IPV == 4 */
int pim_if_igmp_join_del(struct interface *ifp, struct in_addr group_addr,
struct in_addr source_addr)
@@ -1748,7 +1749,6 @@ static int pim_ifp_down(struct interface *ifp)
*/
pim_if_addr_del_all(ifp);
-#if PIM_IPV == 4
/*
pim_sock_delete() closes the socket, stops read and timer
threads,
@@ -1757,7 +1757,6 @@ static int pim_ifp_down(struct interface *ifp)
if (ifp->info) {
pim_sock_delete(ifp, "link down");
}
-#endif
}
if (ifp->info) {