diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-05-14 15:40:27 -0700 | 
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-06-25 22:58:47 -0400 | 
| commit | e7addf02a1164499c515fdcfc8c8bb75c383ff90 (patch) | |
| tree | b15565a91cf39e4229a332eaf19bdf65c6777695 /lib/nexthop.h | |
| parent | 6c8b51e172a67c8e575299ad493f1702a0608336 (diff) | |
lib: Put single nexthop copy into its own function
Put the code to copy a single nexthop into a function
of its own.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop.h')
| -rw-r--r-- | lib/nexthop.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 5b6c12d4ef..ada7317a58 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -152,6 +152,8 @@ extern const char *nexthop2str(const struct nexthop *nexthop,  			       char *str, int size);  extern struct nexthop *nexthop_next(struct nexthop *nexthop);  extern unsigned int nexthop_level(struct nexthop *nexthop); +extern void nexthop_copy(struct nexthop *copy, const struct nexthop *nexthop, +			 struct nexthop *rparent);  #ifdef __cplusplus  }  | 
