summaryrefslogtreecommitdiffstats
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-08-02 13:11:53 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-08-02 13:11:53 +0200
commitba5e5940aa1f11128c76a3964823bda22e47ab04 (patch)
tree7bd7dc426fb1d3ee2b940d981159fdf9780883ec /nest/rt-table.c
parentd395fe48553062413a85fd04cda0752f933e70c6 (diff)
downloadbird-ba5e5940aa1f11128c76a3964823bda22e47ab04.tar
bird-ba5e5940aa1f11128c76a3964823bda22e47ab04.zip
Adds igp_metric attribute.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index b73f52f..ef07042 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1473,6 +1473,11 @@ if_local_addr(ip_addr a, struct iface *i)
static u32
rt_get_igp_metric(rte *rt)
{
+ eattr *ea = ea_find(rt->attrs->eattrs, EA_GEN_IGP_METRIC);
+
+ if (ea)
+ return ea->u.data;
+
rta *a = rt->attrs;
if ((a->source == RTS_OSPF) ||
(a->source == RTS_OSPF_IA) ||