修复hash_32的bug,增加进程监控(没做完,还需要加一些东西)

This commit is contained in:
huoji
2023-05-08 22:44:27 +08:00
parent 7484922894
commit 7f1d3e37d3
48 changed files with 226 additions and 3350 deletions

View File

@@ -14,7 +14,7 @@ typedef struct kernel_msg_t {
int type;
union {
struct {
unsigned long src_ip;
unsigned int src_ip;
} ip_action;
} u;
};
@@ -23,14 +23,14 @@ typedef struct client_msg_t {
int type;
union {
struct {
unsigned long src_ip;
unsigned int src_ip;
unsigned long block_time;
} ip_address;
} u;
};
namespace client_msg {
auto dispath_kernel_msg() -> void;
auto block_ip(size_t ip_address, size_t time_sec) -> bool;
auto block_ip(uint32_t ip_address, size_t time_sec) -> bool;
auto init() -> bool;
auto call_driver(client_msg_t msg) -> bool;
auto uninstall() -> void;