From a0bbe0c5e63e177b824708195e075de4572c4fc7 Mon Sep 17 00:00:00 2001 From: "qcqcqc@wsl" <1220204124@zust.edu.cn> Date: Thu, 24 Apr 2025 18:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E5=86=85=E5=AD=98=E7=BB=93=E6=9E=84=E4=BD=93=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exec_hook.h | 2 +- src/struct.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/exec_hook.h b/src/exec_hook.h index 9b95b16..02e7a90 100644 --- a/src/exec_hook.h +++ b/src/exec_hook.h @@ -51,6 +51,6 @@ #define ANSI_COLOR_BLUE "\x1b[34m" #define SHM_KEY 0x78945 -#define SHM_SIZE 1024 * 1024 +#define SHM_SIZE 32 * 1024 * 1024 #endif // EXEC_HOOK_H \ No newline at end of file diff --git a/src/struct.h b/src/struct.h index 7706382..b04f911 100644 --- a/src/struct.h +++ b/src/struct.h @@ -2,12 +2,12 @@ #define STRUCT_H #define _GNU_SOURCE -#define MAX_RULES 128 -#define MAX_ARGS 32 +#define MAX_RULES 512 + 64 + 32 +#define MAX_ARGS 128 #define MAX_RULE_CMD_LEN 256 #define MAX_TYPE_LEN 32 -#define MAX_MSG_LEN 256 -#define MAX_ARGS_LEN 128 +#define MAX_MSG_LEN 4096 +#define MAX_ARGS_LEN 256 + 128 typedef struct { char cmd[MAX_RULE_CMD_LEN];