]> git.puffer.fish Git - mirror/frr.git/commit
pimd: simplify pim upstream state transitions
authoranuradhak <anuradhak@cumulusnetworks.com>
Thu, 9 Mar 2017 18:47:50 +0000 (10:47 -0800)
committeranuradhak <anuradhak@cumulusnetworks.com>
Fri, 10 Mar 2017 18:48:43 +0000 (10:48 -0800)
commitb4786acd7ea88ec0a3da8edfc4e0ce71f67b5f12
tree4a6e881973a3cdb5b008d565452e6f865a920c94
parent0c2ebf00a628772c09ec97f970ae34b8076e9976
pimd: simplify pim upstream state transitions

This is another follow-up change to the reg-state and up-join-state
separation. The upstream join state machine can now respond to
JoinDesired macro changes independent of router role.

I have also dropped the PRUNE state from the upstream-join-state
enumeration. RFC4601 only defines JOINED and NOTJOINED states. And PRUNE
can really be replace by NOTJOINED.

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-14700
Testing Done: Register state machine in FHR only, combined FHR-RP and
FHR-RP-LHR/all-in-one setups. Also ran pim-smoke.
pimd/pim_register.c
pimd/pim_upstream.c
pimd/pim_upstream.h