]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Fix handling of ECMP next hop flags
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 17 Feb 2019 22:03:41 +0000 (23:03 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 17 Feb 2019 22:03:41 +0000 (23:03 +0100)
Flag field was not copied when next hop was cached.

nest/rt-attr.c

index 881687de5c9d7dfc4cedd02dec878166316f2d9c..d0d116170ab87783baa582faed514aa958c09ed1 100644 (file)
@@ -331,6 +331,7 @@ nexthop_copy(struct nexthop *o)
       n->gw = o->gw;
       n->iface = o->iface;
       n->next = NULL;
+      n->flags = o->flags;
       n->weight = o->weight;
       n->labels = o->labels;
       for (int i=0; i<o->labels; i++)