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

nest/rt-attr.c

index eeeaaa4ce1d24a85683a41b2d9fe6a9e60510353..d04ccfe9f86ce074e066200c269c2f08fe2cacc7 100644 (file)
@@ -346,6 +346,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++)