diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-04-05 21:07:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-05 21:07:15 +0200 |
| commit | 8996a815b5e43f6a1ced2e9bd4485c655e73c22e (patch) | |
| tree | 7f400b921ead525ce6984631f8aef96837490727 /pimd/pim_cmd_common.h | |
| parent | 9fc31ddbd55588aa4405159fa9218f0c05f14756 (diff) | |
| parent | 1881b5c0cabbb1a3b88d18d14c83a33d80d17b90 (diff) | |
Merge pull request #10365 from SaiGomathiN/ipv6-config-cmd
Diffstat (limited to 'pimd/pim_cmd_common.h')
| -rw-r--r-- | pimd/pim_cmd_common.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pimd/pim_cmd_common.h b/pimd/pim_cmd_common.h index 00a9a56738..3bcd0d5d6d 100644 --- a/pimd/pim_cmd_common.h +++ b/pimd/pim_cmd_common.h @@ -93,6 +93,15 @@ void pim_show_neighbors_single(struct pim_instance *pim, struct vty *vty, const char *neighbor, json_object *json); void pim_show_neighbors(struct pim_instance *pim, struct vty *vty, json_object *json); +int gm_process_query_max_response_time_cmd(struct vty *vty, + const char *qmrt_str); +int gm_process_no_query_max_response_time_cmd(struct vty *vty); +int gm_process_last_member_query_count_cmd(struct vty *vty, + const char *lmqc_str); +int gm_process_no_last_member_query_count_cmd(struct vty *vty); +int gm_process_last_member_query_interval_cmd(struct vty *vty, + const char *lmqi_str); +int gm_process_no_last_member_query_interval_cmd(struct vty *vty); /* * Special Macro to allow us to get the correct pim_instance */ @@ -102,4 +111,12 @@ void pim_show_neighbors(struct pim_instance *pim, struct vty *vty, (vrf) ? vrf->info : pim_get_pim_instance(VRF_DEFAULT); \ vrf = (vrf) ? vrf : pim->vrf +/* + * Special Macro to allow us to get the correct pim_instance; + */ +#define PIM_DECLVAR_CONTEXT(A, B) \ + struct vrf *A = VTY_GET_CONTEXT(vrf); \ + struct pim_instance *B = \ + (vrf) ? vrf->info : pim_get_pim_instance(VRF_DEFAULT); \ + vrf = (vrf) ? vrf : pim->vrf #endif /* PIM_CMD_COMMON_H */ |
