diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-08 12:40:00 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-08 12:40:00 +0200 |
commit | 916c8c0abacfd5ba93353fec9dba84a81845c95e (patch) | |
tree | 8d0abb12434e6e0b9ea3304f799504a298e17003 /proto/ospf | |
parent | 1151401e2b8b4434bbd1419ff33a48f2848d600d (diff) | |
download | bird-916c8c0abacfd5ba93353fec9dba84a81845c95e.tar bird-916c8c0abacfd5ba93353fec9dba84a81845c95e.zip |
Use preferences properly.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/config.Y | 1 | ||||
-rw-r--r-- | proto/ospf/rt.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y index 1edaeb0..dcd7500 100644 --- a/proto/ospf/config.Y +++ b/proto/ospf/config.Y @@ -20,6 +20,7 @@ CF_ADDTO(proto, ospf_proto '}') ospf_proto_start: proto_start OSPF { this_proto = proto_config_new(&proto_ospf, sizeof(struct ospf_config)); + this_proto->preference = DEF_PREF_OSPF; } ; 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); |