]> git.proxmox.com Git - mirror_frr.git/commit - lib/nexthop.c
lib,zebra: tighten up the nexthop_copy/nexthop_dup APIs
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 13 Jan 2020 18:29:58 +0000 (13:29 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Wed, 15 Jan 2020 18:35:04 +0000 (13:35 -0500)
commit77bf9504bfcdb977cda2addca27254e22be52f2f
tree874f0c4118ceafffeafd6c25cd833060f1276a60
parent0fff714efa1959f48c8e1d88e88968d15c1ffe78
lib,zebra: tighten up the nexthop_copy/nexthop_dup APIs

Make the nexthop_copy/nexthop_dup APIs more consistent by
adding a secondary, non-recursive, version of them. Before,
it was inconsistent whether the APIs were expected to copy
recursive info or not. Make it clear now that the default is
recursive info is copied unless the _no_recurse() version is
called. These APIs are not heavily used so it is fine to
change them for now.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
lib/nexthop.c
lib/nexthop.h
lib/nexthop_group.c
zebra/zebra_nhg.c