]> git.proxmox.com Git - mirror_frr.git/commit - lib/vty.h
lib, zebra, pimd: clean up/fix VRF DECLVAR macros
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 28 Apr 2022 09:06:20 +0000 (11:06 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 28 Apr 2022 09:09:26 +0000 (11:09 +0200)
commit0cbed9511acbf4adbf9209a022b48e1fc0d0e2a3
treeaaf3ad8885757cc3cb234333d89093bf40bd4144
parent633a50d11c7dc14e543e849cc4ec135ca0416f17
lib, zebra, pimd: clean up/fix VRF DECLVAR macros

There's a common pattern of "get VRF context for CLI node" here, which
first got a helper macro in zebra that then permeated into pimd.

Unfortunately the pimd copy wasn't quite adjusted correctly and thus
caused two coverity warnings (CID 1517453, CID 1517454).

Fix the PIM one, and clean up by providing a common base macro in
`lib/vty.h`.

Also rename the macros (add `_VRF`) to make more clear what they do.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/vty.h
pimd/pim6_cmd.c
pimd/pim_cmd.c
pimd/pim_cmd_common.h
zebra/router-id.c
zebra/zebra_routemap.c
zebra/zebra_vrf.h
zebra/zebra_vty.c