From 39c028e9e9e3acf840051f4271fadd4939fde2af Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 24 Jan 2012 11:31:00 +0100 Subject: Assign default protocol preference via proto_config_new(). The patch from Alexander V. Chernikov. --- proto/static/static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/static/static.c') 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, -- cgit v1.2.3