mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Moved initlialization of protocol lists to global init. Argh.
This commit is contained in:
parent
d272fe22dd
commit
471cc0be65
10
nest/proto.c
10
nest/proto.c
@ -160,11 +160,6 @@ protos_preconfig(struct config *c)
|
|||||||
{
|
{
|
||||||
struct protocol *p;
|
struct protocol *p;
|
||||||
|
|
||||||
init_list(&proto_list);
|
|
||||||
init_list(&active_proto_list);
|
|
||||||
init_list(&inactive_proto_list);
|
|
||||||
init_list(&initial_proto_list);
|
|
||||||
init_list(&flush_proto_list);
|
|
||||||
init_list(&c->protos);
|
init_list(&c->protos);
|
||||||
debug("Protocol preconfig:");
|
debug("Protocol preconfig:");
|
||||||
WALK_LIST(p, protocol_list)
|
WALK_LIST(p, protocol_list)
|
||||||
@ -363,6 +358,11 @@ void
|
|||||||
protos_build(void)
|
protos_build(void)
|
||||||
{
|
{
|
||||||
init_list(&protocol_list);
|
init_list(&protocol_list);
|
||||||
|
init_list(&proto_list);
|
||||||
|
init_list(&active_proto_list);
|
||||||
|
init_list(&inactive_proto_list);
|
||||||
|
init_list(&initial_proto_list);
|
||||||
|
init_list(&flush_proto_list);
|
||||||
add_tail(&protocol_list, &proto_device.n);
|
add_tail(&protocol_list, &proto_device.n);
|
||||||
#ifdef CONFIG_RIP
|
#ifdef CONFIG_RIP
|
||||||
add_tail(&protocol_list, &proto_rip.n);
|
add_tail(&protocol_list, &proto_rip.n);
|
||||||
|
Loading…
Reference in New Issue
Block a user