diff options
| author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-03-24 01:41:15 -0700 |
|---|---|---|
| committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-05-17 21:43:13 -0700 |
| commit | bf385e265377df24932d72bae2ef448b6f48e175 (patch) | |
| tree | 8e6fbbf485d36ca8585ea82b9a61c6338c5c1dc5 /pimd/pim_cmd_common.c | |
| parent | 44937c5450320eb119f9a4ea0c9bd32600d8e007 (diff) | |
pim6d: Add 'debug pimv6'
Implementing debug pimv6 command for PIMv6 protocol activity.
Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim_cmd_common.c')
| -rw-r--r-- | pimd/pim_cmd_common.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pimd/pim_cmd_common.c b/pimd/pim_cmd_common.c index b6cb3113ec..eda9f100b2 100644 --- a/pimd/pim_cmd_common.c +++ b/pimd/pim_cmd_common.c @@ -3673,3 +3673,28 @@ void clear_pim_statistics(struct pim_instance *pim) pim_ifp->pim_ifstat_bsm_invalid_sz = 0; } } + +int pim_debug_pim_cmd(void) +{ + PIM_DO_DEBUG_PIM_EVENTS; + PIM_DO_DEBUG_PIM_PACKETS; + PIM_DO_DEBUG_PIM_TRACE; + PIM_DO_DEBUG_MSDP_EVENTS; + PIM_DO_DEBUG_MSDP_PACKETS; + PIM_DO_DEBUG_BSM; + PIM_DO_DEBUG_VXLAN; + return CMD_SUCCESS; +} + +int pim_no_debug_pim_cmd(void) +{ + PIM_DONT_DEBUG_PIM_EVENTS; + PIM_DONT_DEBUG_PIM_PACKETS; + PIM_DONT_DEBUG_PIM_TRACE; + PIM_DONT_DEBUG_MSDP_EVENTS; + PIM_DONT_DEBUG_MSDP_PACKETS; + + PIM_DONT_DEBUG_PIM_PACKETDUMP_SEND; + PIM_DONT_DEBUG_PIM_PACKETDUMP_RECV; + return CMD_SUCCESS; +} |
