summaryrefslogtreecommitdiff
path: root/lib/nexthop_group.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-02-27 18:43:59 -0500
committerGitHub <noreply@github.com>2020-02-27 18:43:59 -0500
commitf16e992d37f670ea4812c950e3f3d29e7f019b03 (patch)
tree1fa614cd6e3aaad1b237b159be2b48dfa7282d3b /lib/nexthop_group.c
parent93b568451d3af4228376f82a253fa71a964fb091 (diff)
parentc415d89528f5cd7128e5b4c4cd65cce01d64fc80 (diff)
Merge pull request #5857 from mjstapp/embed_nhg_in_nhe
zebra,lib: Embed lib nexthop-group in zebra hash entry
Diffstat (limited to 'lib/nexthop_group.c')
-rw-r--r--lib/nexthop_group.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c
index 3005a51c71..d660428bcd 100644
--- a/lib/nexthop_group.c
+++ b/lib/nexthop_group.c
@@ -216,7 +216,8 @@ struct nexthop_group *nexthop_group_new(void)
return XCALLOC(MTYPE_NEXTHOP_GROUP, sizeof(struct nexthop_group));
}
-void nexthop_group_copy(struct nexthop_group *to, struct nexthop_group *from)
+void nexthop_group_copy(struct nexthop_group *to,
+ const struct nexthop_group *from)
{
/* Copy everything, including recursive info */
copy_nexthops(&to->nexthop, from->nexthop, NULL);