mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 11:18:59 +00:00
pimd: Fix the test to see if a upstream is (S,G,rpt)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
e4fe5b196e
commit
f21597f04d
@ -991,8 +991,15 @@ pim_upstream_switch_to_spt_desired (struct prefix_sg *sg)
|
|||||||
int
|
int
|
||||||
pim_upstream_is_sg_rpt (struct pim_upstream *up)
|
pim_upstream_is_sg_rpt (struct pim_upstream *up)
|
||||||
{
|
{
|
||||||
if (up->sptbit == PIM_UPSTREAM_SPTBIT_TRUE)
|
struct listnode *chnode;
|
||||||
|
struct pim_ifchannel *ch;
|
||||||
|
|
||||||
|
for (ALL_LIST_ELEMENTS_RO(pim_ifchannel_list, chnode, ch))
|
||||||
|
{
|
||||||
|
if ((ch->upstream == up) &&
|
||||||
|
(PIM_IF_FLAG_TEST_S_G_RPT(ch->flags)))
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user