diff options
author | Maria Matejka <mq@ucw.cz> | 2022-05-04 12:41:54 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-04 15:39:21 +0200 |
commit | 702c04fbef222e802ca4dfac645dc75ede522db6 (patch) | |
tree | cf962b4003b0e7115ab230924cbdb0775a7cba45 /proto | |
parent | 0c4e0e4a635169cada395144dd67d1e66f1c9649 (diff) |
Removing the route scope attribute. Use custom attributes instead.
The route scope attribute was used for simple user route marking. As
there is a better tool for this (custom attributes), the old and limited
way can be dropped.
Diffstat (limited to 'proto')
-rw-r--r-- | proto/babel/babel.c | 2 | ||||
-rw-r--r-- | proto/bgp/packets.c | 1 | ||||
-rw-r--r-- | proto/ospf/rt.c | 1 | ||||
-rw-r--r-- | proto/perf/perf.c | 1 | ||||
-rw-r--r-- | proto/rip/rip.c | 1 | ||||
-rw-r--r-- | proto/rpki/rpki.c | 1 | ||||
-rw-r--r-- | proto/static/static.c | 1 |
7 files changed, 0 insertions, 8 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c index f4503b99..cd221c7b 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -659,7 +659,6 @@ babel_announce_rte(struct babel_proto *p, struct babel_entry *e) rta a0 = { .source = RTS_BABEL, - .scope = SCOPE_UNIVERSE, .dest = RTD_UNICAST, .nh.gw = r->next_hop, .nh.iface = r->neigh->ifa->iface, @@ -685,7 +684,6 @@ babel_announce_rte(struct babel_proto *p, struct babel_entry *e) /* Unreachable */ rta a0 = { .source = RTS_BABEL, - .scope = SCOPE_UNIVERSE, .dest = RTD_UNREACHABLE, }; diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 9760ebee..62d60e9a 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -2475,7 +2475,6 @@ bgp_decode_nlri(struct bgp_parse_state *s, u32 afi, byte *nlri, uint len, ea_lis a = allocz(RTA_MAX_SIZE); a->source = RTS_BGP; - a->scope = SCOPE_UNIVERSE; a->eattrs = ea; ea_set_attr_data(&a->eattrs, &ea_gen_from, 0, &s->proto->remote_ip, sizeof(ip_addr)); diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 3d8cf22c..ddc5b162 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -2054,7 +2054,6 @@ again1: { rta a0 = { .source = nf->n.type, - .scope = SCOPE_UNIVERSE, .dest = RTD_UNICAST, .nh = *(nf->n.nhs), }; diff --git a/proto/perf/perf.c b/proto/perf/perf.c index 7b18866c..47a2867d 100644 --- a/proto/perf/perf.c +++ b/proto/perf/perf.c @@ -144,7 +144,6 @@ perf_loop(void *data) if (!p->attrs_per_rte || !(i % p->attrs_per_rte)) { struct rta a0 = { .source = RTS_PERF, - .scope = SCOPE_UNIVERSE, .dest = RTD_UNICAST, .nh.iface = p->ifa->iface, .nh.gw = gw, diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 7c097a92..f5442606 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -153,7 +153,6 @@ rip_announce_rte(struct rip_proto *p, struct rip_entry *en) /* Update */ rta a0 = { .source = RTS_RIP, - .scope = SCOPE_UNIVERSE, .dest = RTD_UNICAST, }; diff --git a/proto/rpki/rpki.c b/proto/rpki/rpki.c index 710764e2..af963f49 100644 --- a/proto/rpki/rpki.c +++ b/proto/rpki/rpki.c @@ -122,7 +122,6 @@ rpki_table_add_roa(struct rpki_cache *cache, struct channel *channel, const net_ rta a0 = { .source = RTS_RPKI, - .scope = SCOPE_UNIVERSE, .dest = RTD_NONE, }; diff --git a/proto/static/static.c b/proto/static/static.c index d4b1c5f3..ff833b16 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -56,7 +56,6 @@ static_announce_rte(struct static_proto *p, struct static_route *r) rta *a = allocz(RTA_MAX_SIZE); struct rte_src *src = static_get_source(p, r->index); a->source = RTS_STATIC; - a->scope = SCOPE_UNIVERSE; a->dest = r->dest; ea_set_attr_u32(&a->eattrs, &ea_gen_preference, 0, p->p.main_channel->preference); |