修改了共享内存结构体定义

This commit is contained in:
Pan Qiancheng 2025-04-24 18:18:48 +08:00
parent 6042a767a3
commit a0bbe0c5e6
2 changed files with 5 additions and 5 deletions

View File

@ -51,6 +51,6 @@
#define ANSI_COLOR_BLUE "\x1b[34m" #define ANSI_COLOR_BLUE "\x1b[34m"
#define SHM_KEY 0x78945 #define SHM_KEY 0x78945
#define SHM_SIZE 1024 * 1024 #define SHM_SIZE 32 * 1024 * 1024
#endif // EXEC_HOOK_H #endif // EXEC_HOOK_H

View File

@ -2,12 +2,12 @@
#define STRUCT_H #define STRUCT_H
#define _GNU_SOURCE #define _GNU_SOURCE
#define MAX_RULES 128 #define MAX_RULES 512 + 64 + 32
#define MAX_ARGS 32 #define MAX_ARGS 128
#define MAX_RULE_CMD_LEN 256 #define MAX_RULE_CMD_LEN 256
#define MAX_TYPE_LEN 32 #define MAX_TYPE_LEN 32
#define MAX_MSG_LEN 256 #define MAX_MSG_LEN 4096
#define MAX_ARGS_LEN 128 #define MAX_ARGS_LEN 256 + 128
typedef struct { typedef struct {
char cmd[MAX_RULE_CMD_LEN]; char cmd[MAX_RULE_CMD_LEN];