]> git.puffer.fish Git - mirror/frr.git/commitdiff
pim6d: Add 'debug mld packets'
authorSai Gomathi N <nsaigomathi@vmware.com>
Mon, 26 Sep 2022 06:22:31 +0000 (23:22 -0700)
committerSai Gomathi N <nsaigomathi@vmware.com>
Mon, 26 Sep 2022 06:22:31 +0000 (23:22 -0700)
Implementing mld packets debug to information about packet generation for sending
and about packet handling from a received packet.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
pimd/pim6_cmd.c

index e86e2f972e5aea31a5df836dcfdce37282e84e2a..1df170df0746548874b615b4d0759a43ed3bb3e5 100644 (file)
@@ -1597,6 +1597,22 @@ DEFPY (debug_mld_events,
        return CMD_SUCCESS;
 }
 
+DEFPY (debug_mld_packets,
+       debug_mld_packets_cmd,
+       "[no] debug mld packets",
+       NO_STR
+       DEBUG_STR
+       DEBUG_MLD_STR
+       DEBUG_MLD_PACKETS_STR)
+{
+       if (!no)
+               PIM_DO_DEBUG_GM_PACKETS;
+       else
+               PIM_DONT_DEBUG_GM_PACKETS;
+
+       return CMD_SUCCESS;
+}
+
 void pim_cmd_init(void)
 {
        if_cmd_init(pim_interface_config_write);
@@ -1731,6 +1747,7 @@ void pim_cmd_init(void)
        install_element(ENABLE_NODE, &debug_mroute6_detail_cmd);
        install_element(ENABLE_NODE, &debug_mld_cmd);
        install_element(ENABLE_NODE, &debug_mld_events_cmd);
+       install_element(ENABLE_NODE, &debug_mld_packets_cmd);
 
        install_element(CONFIG_NODE, &debug_pimv6_cmd);
        install_element(CONFIG_NODE, &debug_pimv6_nht_cmd);
@@ -1746,4 +1763,5 @@ void pim_cmd_init(void)
        install_element(CONFIG_NODE, &debug_mroute6_detail_cmd);
        install_element(CONFIG_NODE, &debug_mld_cmd);
        install_element(CONFIG_NODE, &debug_mld_events_cmd);
+       install_element(CONFIG_NODE, &debug_mld_packets_cmd);
 }