diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-01-24 11:31:00 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-01-24 11:31:00 +0100 |
commit | 39c028e9e9e3acf840051f4271fadd4939fde2af (patch) | |
tree | d6ca0ff9816965b31cb2ee4794c1a1c65a427f7d /proto/static | |
parent | 09686693d35bd71187847c95c0967d4125215b97 (diff) |
Assign default protocol preference via proto_config_new().
The patch from Alexander V. Chernikov.
Diffstat (limited to 'proto/static')
-rw-r--r-- | proto/static/static.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/static/static.c b/proto/static/static.c index f6c2a33f..aaa9bfad 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -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, |