mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 11:01:48 +00:00
libs: add ALL_NEXTHOPS_PTR iterator macro
Because sometimes we have a pointer to a nexthop_group. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
6b479dff80
commit
d826a734af
@ -56,6 +56,11 @@ void copy_nexthops(struct nexthop **tnh, struct nexthop *nh,
|
||||
(nhop); \
|
||||
(nhop) = nexthop_next(nhop)
|
||||
|
||||
#define ALL_NEXTHOPS_PTR(head, nhop) \
|
||||
(nhop) = ((head)->nexthop); \
|
||||
(nhop); \
|
||||
(nhop) = nexthop_next(nhop)
|
||||
|
||||
|
||||
struct nexthop_hold {
|
||||
char *nhvrf_name;
|
||||
|
Loading…
Reference in New Issue
Block a user