修改了共享内存结构体定义
This commit is contained in:
parent
6042a767a3
commit
a0bbe0c5e6
|
|
@ -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
|
||||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue