diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-08-02 13:11:53 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-08-02 13:11:53 +0200 |
commit | ba5e5940aa1f11128c76a3964823bda22e47ab04 (patch) | |
tree | 7bd7dc426fb1d3ee2b940d981159fdf9780883ec /nest/rt-table.c | |
parent | d395fe48553062413a85fd04cda0752f933e70c6 (diff) |
Adds igp_metric attribute.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index b73f52fa..ef070428 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) || |