mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 06:02:26 +00:00
pimd: Modify downstream JP state to take into account all states
When we make a decision about downstream state let's take into account all states. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
7f8b8a9af6
commit
b76d6e718e
@ -42,7 +42,20 @@
|
||||
*/
|
||||
static int downstream_jpstate_isjoined(const struct pim_ifchannel *ch)
|
||||
{
|
||||
return (ch->ifjoin_state != PIM_IFJOIN_NOINFO);
|
||||
switch (ch->ifjoin_state)
|
||||
{
|
||||
case PIM_IFJOIN_NOINFO:
|
||||
case PIM_IFJOIN_PRUNE:
|
||||
case PIM_IFJOIN_PRUNE_TMP:
|
||||
case PIM_IFJOIN_PRUNE_PENDING_TMP:
|
||||
return 0;
|
||||
break;
|
||||
case PIM_IFJOIN_JOIN:
|
||||
case PIM_IFJOIN_PRUNE_PENDING:
|
||||
return 1;
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user