1
This commit is contained in:
14
linux_kernel/client_msg.c
Normal file
14
linux_kernel/client_msg.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "client_msg.h"
|
||||
|
||||
void dispath_client_msg(struct client_msg_t* msg) {
|
||||
switch (msg->type) {
|
||||
case SD_MSG_TYPE_CLIENT_BLOCK_IP:
|
||||
const size_t target_ip_address = msg->u.ip_address.src_ip;
|
||||
const size_t block_time = msg->u.ip_address.block_time;
|
||||
block_ip_address(target_ip_address, block_time);
|
||||
break;
|
||||
default:
|
||||
printk(KERN_INFO "Unknown msg type: %d\n", msg->type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user