summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-04-20 10:25:14 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:39:21 +0200
commitd8661a4397e4576ac404661b192dd99d928e7890 (patch)
treee158c76950fc1909c3a6d97f7eec44aecab03278 /proto/bgp/packets.c
parent17f91f9e6e70f7e3f29502e854823c0d48571eaa (diff)
Joined the RTA igp_metric and EA igp_metric attributes
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index a18ff373..5c9bb8ba 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -969,7 +969,7 @@ bgp_apply_next_hop(struct bgp_parse_state *s, rta *a, ip_addr gw, ip_addr ll)
a->dest = RTD_UNICAST;
a->nh.gw = nbr->addr;
a->nh.iface = nbr->iface;
- a->igp_metric = c->cf->cost;
+ ea_set_attr_u32(&a->eattrs, &ea_gen_igp_metric, 0, c->cf->cost);
}
else /* GW_RECURSIVE */
{