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

@@ -353,7 +353,6 @@ static_if_notify(struct proto *p, unsigned flags, struct iface *i)
void
static_init_config(struct static_config *c)
{
c->c.preference = DEF_PREF_STATIC;
init_list(&c->iface_routes);
init_list(&c->other_routes);
}
@@ -523,6 +522,7 @@ static_copy_config(struct proto_config *dest, struct proto_config *src)
struct protocol proto_static = {
name: "Static",
template: "static%d",
preference: DEF_PREF_STATIC,
init: static_init,
dump: static_dump,
start: static_start,