From f14a4becbe77cfb3c2e4243d6fc383b0acd8956f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 16 Jan 2000 23:30:06 +0000 Subject: Reworked proto lists -- each proto is now in two lists: the global one (proto_list) and per-type one (original lists). A lot of things simplified. Implemented `disable', `enable' and `restart' CLI commands. --- nest/protocol.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'nest/protocol.h') diff --git a/nest/protocol.h b/nest/protocol.h index 7c14f97..d5b5810 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -87,7 +87,8 @@ struct proto_config { }; struct proto { - node n; + node n; /* Node in *_proto_list */ + node glob_node; /* Node in global proto_list */ struct protocol *proto; /* Protocol */ struct proto_config *cf; /* Configuration data */ struct proto_config *cf_new; /* Configuration we want to switch to after shutdown (NULL=delete) */ @@ -151,10 +152,12 @@ struct proto { void proto_build(struct proto_config *); void *proto_new(struct proto_config *, unsigned size); void *proto_config_new(struct protocol *, unsigned size); + void proto_show(struct symbol *, int); struct proto *proto_get_named(struct symbol *, struct protocol *); +void proto_xxable(char *, int); -extern list proto_list; +extern list active_proto_list; /* * Each protocol instance runs two different state machines: -- cgit v1.2.3