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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user