summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
Diffstat (limited to 'nest')
-rw-r--r--nest/proto.c1
-rw-r--r--nest/protocol.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/nest/proto.c b/nest/proto.c
index 431c47db..04ee289b 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -127,6 +127,7 @@ protos_preconfig(struct config *c)
WALK_LIST(p, protocol_list)
{
debug(" %s", p->name);
+ p->name_counter = 0;
if (p->preconfig)
p->preconfig(p, c);
}
diff --git a/nest/protocol.h b/nest/protocol.h
index 1e641a5f..626dd994 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -31,6 +31,7 @@ struct protocol {
char *name;
unsigned debug; /* Default debugging flags */
int priority; /* Protocol priority (usually 0) */
+ int name_counter; /* Counter for automatic name generation */
void (*preconfig)(struct protocol *, struct config *); /* Just before configuring */
void (*postconfig)(struct proto_config *); /* After configuring each instance */