0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Nest: Fix handling of ECMP next hop flags

Flag field was not copied when next hop was cached.
This commit is contained in:
Ondrej Zajicek (work) 2018-12-16 23:39:53 +01:00
parent cfa6ff9569
commit 337165959c

View File

@ -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++)