1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Use preferences properly.

This commit is contained in:
Martin Mares
2000-05-08 10:40:00 +00:00
parent 1151401e2b
commit 916c8c0aba
4 changed files with 5 additions and 3 deletions

View File

@@ -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;
}
;

View File

@@ -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);