summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorsarita patra <saritap@vmware.com>2022-01-21 12:02:16 +0100
committersarita patra <saritap@vmware.com>2022-01-21 12:05:18 +0100
commit5c4508cb328ecb3b840c364772ba9e568f4fabf0 (patch)
tree90bd2d97bed856645935bf6d01e1a0f7c03fc2d3 /pimd
parentMerge pull request #10274 from anlancs/fix-spell-error-bfd (diff)
downloadfrr-5c4508cb328ecb3b840c364772ba9e568f4fabf0.tar.xz
frr-5c4508cb328ecb3b840c364772ba9e568f4fabf0.zip
pimd: debug pim fixes
Enable debug commands "debug pim packetdump send" and "debug pim packetdump receive" in config mode. Display "debug pim nht rp" in show running config. Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_cmd.c4
-rw-r--r--pimd/pim_vty.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c
index 86a09f72f..404a9c57c 100644
--- a/pimd/pim_cmd.c
+++ b/pimd/pim_cmd.c
@@ -11115,6 +11115,10 @@ void pim_cmd_init(void)
install_element(CONFIG_NODE, &no_debug_pim_events_cmd);
install_element(CONFIG_NODE, &debug_pim_packets_cmd);
install_element(CONFIG_NODE, &no_debug_pim_packets_cmd);
+ install_element(CONFIG_NODE, &debug_pim_packetdump_send_cmd);
+ install_element(CONFIG_NODE, &no_debug_pim_packetdump_send_cmd);
+ install_element(CONFIG_NODE, &debug_pim_packetdump_recv_cmd);
+ install_element(CONFIG_NODE, &no_debug_pim_packetdump_recv_cmd);
install_element(CONFIG_NODE, &debug_pim_trace_cmd);
install_element(CONFIG_NODE, &no_debug_pim_trace_cmd);
install_element(CONFIG_NODE, &debug_pim_trace_detail_cmd);
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c
index 5c6d32714..8812a095f 100644
--- a/pimd/pim_vty.c
+++ b/pimd/pim_vty.c
@@ -162,6 +162,11 @@ int pim_debug_config_write(struct vty *vty)
++writes;
}
+ if (PIM_DEBUG_PIM_NHT_RP) {
+ vty_out(vty, "debug pim nht rp\n");
+ ++writes;
+ }
+
return writes;
}