summaryrefslogtreecommitdiffstats
path: root/proto/ospf/rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/rt.c')
-rw-r--r--proto/ospf/rt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index 1950342..7c7d46e 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -211,6 +211,7 @@ again:
e->u.ospf.tag=0; /* FIXME Some config? */
e->pflags = 0;
e->net=ne;
+ e->pref = p->preference;
DBG("Modifying rt entry %I\n (IP: %I, GW: %I, Iface: %s)\n",
nf->fn.prefix,ip,en->nh,en->nhi->name);
rte_update(p->table, ne, p, e);