X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_internal.h;h=406d4338f1e5fa6b291a6a7fa65b2fca5f3d6673;hb=cdedc07c65bab8467f6f5b1ef4b38982c2c77571;hp=1fb5201e81c1848ea8359b83bb1386ed9228eca6;hpb=2878ba34b8d864f89cfb785448e95cdd42297ee0;p=silc.git diff --git a/apps/silcd/server_internal.h b/apps/silcd/server_internal.h index 1fb5201e..406d4338 100644 --- a/apps/silcd/server_internal.h +++ b/apps/silcd/server_internal.h @@ -152,6 +152,9 @@ typedef struct { SilcUInt32 failure; } *SilcServerFailureContext; +/* Rekey must be performed at the lastest when this many packets is sent */ +#define SILC_SERVER_REKEY_THRESHOLD 0xfffffe00 + /* Macros */ /* Return pointer to the primary router connection */ @@ -228,6 +231,7 @@ do { \ /* Prototypes */ SILC_TASK_CALLBACK_GLOBAL(silc_server_rekey_final); +SILC_TASK_CALLBACK_GLOBAL(silc_server_rekey_callback); void silc_server_watcher_list_destroy(void *key, void *context, void *user_context);