summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-05-30 17:26:25 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-30 17:26:25 +0200
commit41508ceac3cdd74ca705d3bfc6a79464bf38e0b5 (patch)
tree4a0506a93849b3b7e61faeeaba1af289e13d646a /nest/rt-table.c
parent65254128e105903b6b470c6b4bb4729f56cf81bc (diff)
parent1c30b689ddd032ef8000fb7836348a48ba3184ff (diff)
Merge commit '1c30b689ddd032ef8000fb7836348a48ba3184ff' into haugesund
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 3d42c9de..3f3aee18 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -2705,7 +2705,7 @@ rt_flowspec_check(rtable *tab_ip, rtable *tab_flow, const net_addr *n, rta *a, i
trie_add_prefix(tab_flow->flowspec_trie, &dst, (nb ? nb->n.addr->pxlen : 0), max_pxlen);
/* No best-match BGP route -> no flowspec */
- if (!rb || (rb->attrs->source != RTS_BGP))
+ if (!rb || (rt_get_source_attr(rb) != RTS_BGP))
return 0;
/* Find ORIGINATOR_ID values */
@@ -2737,7 +2737,7 @@ rt_flowspec_check(rtable *tab_ip, rtable *tab_flow, const net_addr *n, rta *a, i
continue;
const rte *rc = &nc->routes->rte;
- if (rc->attrs->source != RTS_BGP)
+ if (rt_get_source_attr(rc) != RTS_BGP)
return 0;
if (rta_get_first_asn(rc->attrs) != asn_b)
@@ -2754,7 +2754,7 @@ static struct rte_storage *
rt_flowspec_update_rte(rtable *tab, net *n, rte *r)
{
#ifdef CONFIG_BGP
- if (r->attrs->source != RTS_BGP)
+ if (rt_get_source_attr(r) != RTS_BGP)
return NULL;
struct bgp_channel *bc = (struct bgp_channel *) r->sender;
@@ -3549,7 +3549,7 @@ rt_get_igp_metric(const rte *rt)
if (ea)
return ea->u.data;
- if (rt->attrs->source == RTS_DEVICE)
+ if (rt_get_source_attr(rt) == RTS_DEVICE)
return 0;
if (rt->src->proto->rte_igp_metric)