X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilcd%2Fserverconfig.h;h=0c424a43b21ad1bfc9e328cbcda091b4ab909466;hp=f6612d4d76df4a62f3633305229ede744e6c21a0;hb=e5d8d3db6caa344b3d419b884556c21b15e7d123;hpb=89329650d986e09749d9c6a039797aaccfb30f27 diff --git a/apps/silcd/serverconfig.h b/apps/silcd/serverconfig.h index f6612d4d..0c424a43 100644 --- a/apps/silcd/serverconfig.h +++ b/apps/silcd/serverconfig.h @@ -56,8 +56,8 @@ typedef struct { /* Holds all the ports the server is listenning on */ typedef struct SilcServerConfigSectionListenPortStruct { - char *host; - char *remote_ip; + char *local_ip; + char *listener_ip; uint16 port; struct SilcServerConfigSectionListenPortStruct *next; struct SilcServerConfigSectionListenPortStruct *prev; @@ -66,8 +66,8 @@ typedef struct SilcServerConfigSectionListenPortStruct { /* Holds server's execution identity, or the user and group which to change from root when server starts */ typedef struct { - char *user; - char *group; + char *user; + char *group; } SilcServerConfigSectionIdentity; /* Holds all the configured log files. */ @@ -132,6 +132,8 @@ typedef struct SilcServerConfigSectionServerConnectionStruct { char *version; uint32 class; bool initiator; + bool backup_router; + bool backup_local; struct SilcServerConfigSectionServerConnectionStruct *next; struct SilcServerConfigSectionServerConnectionStruct *prev; } SilcServerConfigSectionServerConnection; @@ -271,6 +273,8 @@ SilcServerConfigSectionServerConnection * silc_server_config_find_router_conn(SilcServerConfig config, char *host, int port); bool silc_server_config_is_primary_route(SilcServerConfig config); +SilcServerConfigSectionServerConnection * +silc_server_config_get_primary_router(SilcServerConfig config); SilcServerConfigSectionAdminConnection * silc_server_config_find_admin(SilcServerConfig config, char *host, char *username, char *nickname);