summaryrefslogtreecommitdiff
path: root/zebra/zserv.h
diff options
context:
space:
mode:
authorpaul <paul>2003-06-15 01:28:29 +0000
committerpaul <paul>2003-06-15 01:28:29 +0000
commitb21b19c5785487f2ff4a6ce38f45c2e6c35f4363 (patch)
treec79f90ce7bd798b3f1391010153d9fdf7c7418f0 /zebra/zserv.h
parent0e4f190ebf5a26e4b66fb49cd74ae0ff0c7e0863 (diff)
2003-06-15 Paul Jakma <paul@dishone.st>
* lib/vty.{c,h}: Remove vty layer depending on a 'master' global, pass the thread master in explicitly to vty_init. Sort out some header dependency problems with lib/command.h * zebra/: Move globals to struct zebrad. Update vty_init(). * (.*)/\1_main.c: update call to vty_init().
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r--zebra/zserv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h
index ec3c9f4b..42fb64c6 100644
--- a/zebra/zserv.h
+++ b/zebra/zserv.h
@@ -56,6 +56,18 @@ struct zserv
u_char ifinfo;
};
+/* Zebra instance */
+struct zebra_t
+{
+ /* Thread master */
+ struct thread_master *master;
+ list client_list;
+
+ /* default table */
+ int rtm_table_default;
+
+};
+
/* Count prefix size from mask length */
#define PSIZE(a) (((a) + 7) / (8))