projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates
[silc.git]
/
apps
/
silcd
/
server_internal.h
diff --git
a/apps/silcd/server_internal.h
b/apps/silcd/server_internal.h
index 8001cf382e1c7c1cabcc2ff1cbf32f5be3f528e7..41df9ab805195c78fd85d781c76f7235afd29b42 100644
(file)
--- a/
apps/silcd/server_internal.h
+++ b/
apps/silcd/server_internal.h
@@
-96,11
+96,6
@@
struct SilcServerStruct {
/* Table of connected sockets */
SilcSocketConnection *sockets;
/* Table of connected sockets */
SilcSocketConnection *sockets;
- /* Server keys */
- SilcCipher send_key;
- SilcCipher receive_key;
- SilcCipher none_cipher;
-
/* Server public key */
SilcPKCS pkcs;
SilcPublicKey public_key;
/* Server public key */
SilcPKCS pkcs;
SilcPublicKey public_key;
@@
-173,6
+168,16
@@
do { \
silc_schedule_set_listen_fd((s), (fd), (SILC_TASK_READ | SILC_TASK_WRITE)); \
} while(0)
silc_schedule_set_listen_fd((s), (fd), (SILC_TASK_READ | SILC_TASK_WRITE)); \
} while(0)
+#define SILC_OPER_STATS_UPDATE(c, type, mod) \
+do { \
+ if ((c)->mode & (mod)) { \
+ if ((c)->connection) \
+ server->stat.my_ ## type ## _ops--; \
+ if (server->server_type == SILC_ROUTER) \
+ server->stat. type ## _ops--; \
+ } \
+} while(0)
+
/* Prototypes */
SILC_TASK_CALLBACK_GLOBAL(silc_server_rekey_final);
/* Prototypes */
SILC_TASK_CALLBACK_GLOBAL(silc_server_rekey_final);