"IGMP version\n"
"IGMP version number\n")
{
+ #if PIM_IPV == 4
VTY_DECLVAR_CONTEXT(interface, ifp);
- int igmp_version = 2;
+ int igmp_version;
+ struct pim_interface *pim_ifp = ifp->info;
if (!ifp->info) {
vty_out(vty, "IGMP/PIM is not enabled on the interface %s\n",
list_delete(&pim_ifp->sec_addr_list);
XFREE(MTYPE_PIM_INTERFACE, pim_ifp->boundary_oil_plist);
-
- while (!RB_EMPTY(pim_ifchannel_rb, &pim_ifp->ifchannel_rb)) {
- ch = RB_ROOT(pim_ifchannel_rb, &pim_ifp->ifchannel_rb);
-
- pim_ifchannel_delete(ch);
- }
-
XFREE(MTYPE_PIM_INTERFACE, pim_ifp);
+ #endif
ifp->info = NULL;
}
return 0;
}
+ #else /* PIM_IPV != 4 */
+
+ static int pim_mroute_msg(struct pim_instance *pim, const char *buf,
+ int buf_size, ifindex_t ifindex)
+ {
+ return 0;
+ }
+ #endif /* PIM_IPV != 4 */
-static int mroute_read(struct thread *t)
+static void mroute_read(struct thread *t)
{
struct pim_instance *pim;
static long long count;