summaryrefslogtreecommitdiffstats
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-08-03 21:31:54 +0200
committerMartin Mares <mj@ucw.cz>1999-08-03 21:31:54 +0200
commit9d8856897f92ad74be140adafaac41f9df6edf31 (patch)
tree3142f38930d1e0bff6b866c661c57bc94daa9638 /nest/protocol.h
parentb6628a8c98fa53c1b293221ad0f7e0611cb0b76d (diff)
downloadbird-9d8856897f92ad74be140adafaac41f9df6edf31.tar
bird-9d8856897f92ad74be140adafaac41f9df6edf31.zip
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).
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index 84c46fa..8d2f8cf 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 */