Commit 33716595 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Nest: Fix handling of ECMP next hop flags

Flag field was not copied when next hop was cached.
parent cfa6ff95
...@@ -346,6 +346,7 @@ nexthop_copy(struct nexthop *o) ...@@ -346,6 +346,7 @@ nexthop_copy(struct nexthop *o)
n->gw = o->gw; n->gw = o->gw;
n->iface = o->iface; n->iface = o->iface;
n->next = NULL; n->next = NULL;
n->flags = o->flags;
n->weight = o->weight; n->weight = o->weight;
n->labels = o->labels; n->labels = o->labels;
for (int i=0; i<o->labels; i++) for (int i=0; i<o->labels; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment