mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:44:16 +00:00
Merge pull request #2650 from mjstapp/nh_iter
libs: add ALL_NEXTHOPS_PTR iterator macro
This commit is contained in:
commit
89c9b8285e
@ -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