typedef enum {
SILC_CF_NONE = 0,
- /* Command may only be used once per (about) 2 seconds */
+ /* Command may only be used once per (about) 2 seconds. Bursts up
+ to 5 commands are allowed though. */
SILC_CF_LAG = (1L << 1),
+ /* Command may only be used once per (about) 2 seconds. No bursts
+ are allowed at all. */
+ SILC_CF_LAG_STRICT = (1L << 2),
+
/* Command is available for registered connections (connections
whose ID has been created. */
- SILC_CF_REG = (1L << 2),
+ SILC_CF_REG = (1L << 3),
/* Command is available only for server operators */
- SILC_CF_OPER = (1L << 3),
+ SILC_CF_OPER = (1L << 4),
/* Command is available only for SILC (router) operators. If this
is set SILC_CF_OPER is not necessary to be set. */
- SILC_CF_SILC_OPER = (1L << 4),
+ SILC_CF_SILC_OPER = (1L << 5),
} SilcCommandFlag;
#define SILC_COMMAND_CMODE 17
#define SILC_COMMAND_CUMODE 18
#define SILC_COMMAND_KICK 19
-#define SILC_COMMAND_RESTART 20
+#define SILC_COMMAND_BAN 20
#define SILC_COMMAND_CLOSE 21
-#define SILC_COMMAND_DIE 22
+#define SILC_COMMAND_SHUTDOWN 22
#define SILC_COMMAND_SILCOPER 23
#define SILC_COMMAND_LEAVE 24
#define SILC_COMMAND_USERS 25
#define SILC_STATUS_ERR_BAD_NICKNAME 43
#define SILC_STATUS_ERR_BAD_CHANNEL 44
#define SILC_STATUS_ERR_AUTH_FAILED 45
+#define SILC_STATUS_ERR_UNKNOWN_ALGORITHM 46
/* Prototypes */
SilcCommandPayload silc_command_payload_parse(SilcBuffer buffer);