summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-09-16 11:00:19 +0200
committerMaria Matejka <mq@ucw.cz>2021-10-13 19:09:04 +0200
commit541881bedf391d9a19f071b856dcbd55e850dece (patch)
tree2637b62e5190100096a559d9019abcfa36c11064 /proto
parentddd89ba12d03d648e9bb820c6a4f48b1f96f15d2 (diff)
RIP fixup + dropping the tmp_attrs mechanism as obsolete
Diffstat (limited to 'proto')
-rw-r--r--proto/mrt/mrt.c2
-rw-r--r--proto/pipe/pipe.c4
-rw-r--r--proto/rip/rip.c2
3 files changed, 0 insertions, 8 deletions
diff --git a/proto/mrt/mrt.c b/proto/mrt/mrt.c
index ed9ab325..e885611a 100644
--- a/proto/mrt/mrt.c
+++ b/proto/mrt/mrt.c
@@ -525,8 +525,6 @@ mrt_rib_table_dump(struct mrt_table_dump_state *s, net *n, int add_path)
continue;
}
- rte_make_tmp_attrs(&rt, s->linpool, NULL);
-
if (f_run(s->filter, &rt, s->linpool, 0) <= F_ACCEPT)
mrt_rib_table_entry(s, rt);
diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c
index d85a281a..97862780 100644
--- a/proto/pipe/pipe.c
+++ b/proto/pipe/pipe.c
@@ -77,10 +77,6 @@ pipe_rt_notify(struct proto *P, struct channel *src_ch, net *n, rte *new, rte *o
a->cached = 0;
a->hostentry = NULL;
e = rte_get_temp(a, src);
- e->pflags = 0;
-
- /* Copy protocol specific embedded attributes. */
- memcpy(&(e->u), &(new->u), sizeof(e->u));
e->pflags = new->pflags;
#ifdef CONFIG_BGP
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 0556939a..a501a784 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -210,8 +210,6 @@ rip_announce_rte(struct rip_proto *p, struct rip_entry *en)
rta *a = rta_lookup(&a0);
rte *e = rte_get_temp(a, p->p.main_source);
- e->pflags = EA_ID_FLAG(EA_RIP_METRIC) | EA_ID_FLAG(EA_RIP_TAG);
-
rte_update(&p->p, en->n.addr, e);
}
else