updates.
[silc.git] / apps / silcd / server_internal.h
index 9f51174a0652b74f0ef1708c7f447e4a7e0c5abf..8001cf382e1c7c1cabcc2ff1cbf32f5be3f528e7 100644 (file)
@@ -73,12 +73,15 @@ struct SilcServerStruct {
                                        does not have connection to network. */
   bool listenning;                  /* TRUE if server is listenning for
                                        incoming connections. */
-
   SilcServerEntry id_entry;         /* Server's own ID entry */
   SilcServerEntry router;           /* Pointer to the primary router */
   unsigned long router_connect;             /* Time when router was connected */
   SilcServerBackup backup;          /* Backup routers */
-  bool backup_router;
+  bool backup_router;               /* TRUE if this is backup router */
+  bool backup_primary;              /* TRUE if we've switched our primary
+                                       router to a backup router. */
+  SilcServerConnection router_conn; /* non-NULL when connecting to the
+                                      primary router, and NULL otherwise. */
 
   /* Current command identifier, 0 not used */
   uint16 cmd_ident;