mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 13:02:59 +00:00
pimd: Moving the common function from pim_cmd.h file
Moving the PIM_DECLVAR_CONTEXT function to the common file pim_cmd_common.h file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
This commit is contained in:
parent
e7ec758dff
commit
25e1db4246
@ -111,4 +111,12 @@ int gm_process_no_last_member_query_interval_cmd(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 */
|
||||
|
Loading…
Reference in New Issue
Block a user