summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2018-12-18 14:41:12 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-12-18 14:41:12 +0100
commitbda5863425854cc1c705c6f428e952bafd01d2a1 (patch)
treef1398d7692d4ad1d8f9f576a0917d7046d1fa36b /nest
parentcea2e25f417866129ce7e78f1c078e993743173c (diff)
Nest: Handle labels_orig correctly in attribute cache
Diffstat (limited to 'nest')
-rw-r--r--nest/rt-attr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c
index d04ccfe9..3e4578b0 100644
--- a/nest/rt-attr.c
+++ b/nest/rt-attr.c
@@ -188,7 +188,7 @@ nexthop__same(struct nexthop *x, struct nexthop *y)
{
if (!ipa_equal(x->gw, y->gw) || (x->iface != y->iface) ||
(x->flags != y->flags) || (x->weight != y->weight) ||
- (x->labels != y->labels))
+ (x->labels_orig != y->labels_orig) || (x->labels != y->labels))
return 0;
for (int i = 0; i < x->labels; i++)
@@ -348,6 +348,7 @@ nexthop_copy(struct nexthop *o)
n->next = NULL;
n->flags = o->flags;
n->weight = o->weight;
+ n->labels_orig = o->labels_orig;
n->labels = o->labels;
for (int i=0; i<o->labels; i++)
n->label[i] = o->label[i];