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

Assign default protocol preference via proto_config_new().

The patch from Alexander V. Chernikov.
This commit is contained in:
Ondrej Zajicek
2012-01-24 11:31:00 +01:00
parent 09686693d3
commit 39c028e9e9
14 changed files with 10 additions and 8 deletions

View File

@@ -975,7 +975,6 @@ void
rip_init_config(struct rip_proto_config *c)
{
init_list(&c->iface_list);
c->c.preference = DEF_PREF_RIP;
c->infinity = 16;
c->port = 520;
c->period = 30;
@@ -1032,6 +1031,7 @@ struct protocol proto_rip = {
name: "RIP",
template: "rip%d",
attr_class: EAP_RIP,
preference: DEF_PREF_RIP,
get_route_info: rip_get_route_info,
get_attr: rip_get_attr,