summaryrefslogtreecommitdiff
path: root/proto/pipe/pipe.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-27 12:46:22 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-27 12:46:22 +0200
commit9be7aa9b450f22cec9c97143d0cb7650f4fd7cc9 (patch)
treee0e05c016695293d404e4ca99f2505094de66955 /proto/pipe/pipe.c
parent32a67c93ebf29309286dca5195f026eeda3f78a2 (diff)
parent4364ee9b6f3764c971ab111bf7dc87477fd7272c (diff)
Merge commit '4364ee' into tmp-bad-learn
Diffstat (limited to 'proto/pipe/pipe.c')
-rw-r--r--proto/pipe/pipe.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c
index e122d771..99d4b737 100644
--- a/proto/pipe/pipe.c
+++ b/proto/pipe/pipe.c
@@ -58,19 +58,14 @@ pipe_rt_notify(struct proto *P, struct channel *src_ch, const net_addr *n, rte *
if (new)
{
- rta *a = alloca(rta_size(new->attrs));
- memcpy(a, new->attrs, rta_size(new->attrs));
-
- a->cached = 0;
- ea_unset_attr(&a->eattrs, 0, &ea_gen_hostentry);
-
-
rte e0 = {
- .attrs = a,
+ .attrs = new->attrs,
.src = new->src,
.generation = new->generation + 1,
};
+ ea_unset_attr(&e0.attrs, 0, &ea_gen_hostentry);
+
rte_update(dst, n, &e0, new->src);
}
else