Merge pull request #2650 from mjstapp/nh_iter

libs: add ALL_NEXTHOPS_PTR iterator macro
This commit is contained in:
Donald Sharp 2018-07-10 18:20:00 -04:00 committed by GitHub
commit 89c9b8285e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;