mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 01:21:44 +00:00
pimd: No need to add then remove the oif if not DR
When adding an OIF to the OIL, if we are not the DR there is no need to install it then remove it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
e536181ef0
commit
8e389ea9e8
@ -855,6 +855,7 @@ void igmp_source_forward_start(struct pim_instance *pim,
|
||||
}
|
||||
}
|
||||
|
||||
if (PIM_I_am_DR(pim_oif)) {
|
||||
result = pim_channel_add_oif(source->source_channel_oil,
|
||||
group->group_igmp_sock->interface,
|
||||
PIM_OIF_FLAG_PROTO_IGMP);
|
||||
@ -865,17 +866,13 @@ void igmp_source_forward_start(struct pim_instance *pim,
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(PIM_I_am_DR(pim_oif))) {
|
||||
} else {
|
||||
if (PIM_DEBUG_IGMP_TRACE)
|
||||
zlog_debug("%s: %s was received on %s interface but we are not DR for that interface",
|
||||
__PRETTY_FUNCTION__,
|
||||
pim_str_sg_dump(&sg),
|
||||
group->group_igmp_sock->interface->name);
|
||||
|
||||
pim_channel_del_oif(source->source_channel_oil,
|
||||
group->group_igmp_sock->interface,
|
||||
PIM_OIF_FLAG_PROTO_IGMP);
|
||||
return;
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user