From 9d8856897f92ad74be140adafaac41f9df6edf31 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 3 Aug 1999 19:31:54 +0000 Subject: Protocol engine bug fixes: o Make proto_config->table always point to the right table even if it should be the default one. o When shutting down, kill protocol in reverse order of their priority. o When stopping a protocol down, disconnect it from routing tables immediately instead of waiting for the delayed protocol flush event. Also added a protocol instance counter (used by KRT code in very magic ways). --- nest/protocol.h | 1 + 1 file changed, 1 insertion(+) (limited to 'nest/protocol.h') diff --git a/nest/protocol.h b/nest/protocol.h index 84c46fa8..8d2f8cfa 100644 --- a/nest/protocol.h +++ b/nest/protocol.h @@ -34,6 +34,7 @@ struct protocol { unsigned debug; /* Default debugging flags */ int priority; /* Protocol priority (usually 0) */ int name_counter; /* Counter for automatic name generation */ + int startup_counter; /* Number of instances waiting for initialization */ void (*preconfig)(struct protocol *, struct config *); /* Just before configuring */ void (*postconfig)(struct proto_config *); /* After configuring each instance */ -- cgit v1.2.3