summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.c
diff options
context:
space:
mode:
authoranuradhak <anuradhak@cumulusnetworks.com>2017-03-09 09:52:59 -0800
committeranuradhak <anuradhak@cumulusnetworks.com>2017-03-10 10:48:41 -0800
commit0c2ebf00a628772c09ec97f970ae34b8076e9976 (patch)
treeb27d05fed05a6a17d49323e0915b52438f3af9c4 /pimd/pim_cmd.c
parente0e127b00953ba68da8f51c927ca251cea4a3773 (diff)
pimd: add new/distinct enumeration for pim register state
With the separation of register-state and upstream-join-state we no longer need an enumeration that covers both states. This commit includes the following - 1. Defined new enumeration for reg state (this 1:1 with RFC4601). 2. Dropped JOIN_PENDING enum value from upstream join state. RFC4601 only define two values NOT_JOINED and JOINED for this state. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-14700 Testing Done: Verified register setup manually and ran pim-smoke
Diffstat (limited to 'pimd/pim_cmd.c')
-rw-r--r--pimd/pim_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 4183175f86..0895ce21cf 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -1692,7 +1692,7 @@ static void pim_show_upstream(struct vty *vty, u_char uj)
pim_time_timer_to_hhmmss (msdp_reg_timer, sizeof (msdp_reg_timer), up->t_msdp_reg_timer);
if (pim_if_connected_to_source (up->rpf.source_nexthop.interface, up->sg.src))
- strcpy (state_str, pim_upstream_state2str (up->reg_state));
+ pim_reg_state2str (up->reg_state, state_str);
else
strcpy (state_str, pim_upstream_state2str (up->join_state));