diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-26 10:12:35 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-09 11:07:41 -0500 | 
| commit | 7ee30f288e9d572d971c2a36b68775c7d2fac299 (patch) | |
| tree | 6e24b4fde63b53cff251a69fa54fa69afff046b1 /lib/nexthop.h | |
| parent | ba1849ef8c8560cff44008e06c5668b8261b033e (diff) | |
lib: Isolate nexthop_group functions to nexthop_group.c
Also modify `struct route_entry` to use nexthop_groups.
Move ALL_NEXTHOPS loop to nexthop_group.h
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop.h')
| -rw-r--r-- | lib/nexthop.h | 16 | 
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 0be949688f..0ca8a0063a 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -109,24 +109,8 @@ struct nexthop {  	struct mpls_label_stack *nh_label;  }; -/* The following for loop allows to iterate over the nexthop - * structure of routes. - * - * head:      The pointer to the first nexthop in the chain. - * - * nexthop:   The pointer to the current nexthop, either in the - *            top-level chain or in a resolved chain. - */ -#define ALL_NEXTHOPS(head, nexthop)                                            \ -	(nexthop) = (head);                                                    \ -	(nexthop);                                                             \ -	(nexthop) = nexthop_next(nexthop) -  struct nexthop *nexthop_new(void); -void nexthop_add(struct nexthop **target, struct nexthop *nexthop); -void copy_nexthops(struct nexthop **tnh, struct nexthop *nh, -		   struct nexthop *rparent);  void nexthop_free(struct nexthop *nexthop);  void nexthops_free(struct nexthop *nexthop);  | 
