0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-10 05:08:42 +00:00

Preference is a configurable parameter.

This commit is contained in:
Martin Mares 2000-05-08 10:38:25 +00:00
parent 0117d00494
commit 92ef4fa719

View File

@ -819,7 +819,6 @@ rip_rte_remove(net *net, rte *rte)
void void
rip_init_instance(struct proto *p) rip_init_instance(struct proto *p)
{ {
p->preference = DEF_PREF_RIP;
p->if_notify = rip_if_notify; p->if_notify = rip_if_notify;
p->rt_notify = rip_rt_notify; p->rt_notify = rip_rt_notify;
p->import_control = rip_import_control; p->import_control = rip_import_control;
@ -834,6 +833,7 @@ void
rip_init_config(struct rip_proto_config *c) rip_init_config(struct rip_proto_config *c)
{ {
init_list(&c->iface_list); init_list(&c->iface_list);
c->c.preference = DEF_PREF_RIP;
c->infinity = 16; c->infinity = 16;
c->port = 520; c->port = 520;
c->period = 30; c->period = 30;