]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Add a nexthop_dup() that allocates and copies
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 24 Jun 2019 15:37:49 +0000 (11:37 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Wed, 26 Jun 2019 02:58:47 +0000 (22:58 -0400)
commit504d0a409627e21167233e538dbc49af59fbdd99
tree4e2f55ce358933db01c6645b172af9f2a8505995
parente7addf02a1164499c515fdcfc8c8bb75c383ff90
lib: Add a nexthop_dup() that allocates and copies

Add a nexthop_dup() api that both allocates and copies
a new nexthop from an old one. Still retain the old exposed
function nexthop_copy() so we can copy without allocation.

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