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/rip/rip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/rip') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 543aa306..f0a41347 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -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, -- cgit v1.2.3