去掉r0的hook,增加IP屏蔽记录

This commit is contained in:
huoji
2023-11-17 04:06:33 +08:00
parent 49904f5cb5
commit 6bac06d28a
41 changed files with 270150 additions and 48 deletions

View File

@@ -118,8 +118,8 @@ void put_ipdata_by_hashmap(u32 ip_address_key, struct ip_hashmap_info *info) {
// 通过关键字获取哈希表节点
struct ip_hashmap_node_t *get_ipdata_by_hashmap(u32 ip_address_key) {
struct ip_hash_table *table = &g_ip_hashtable;
printk(KERN_ERR "ip_address_key %08X table->bucket_num: %d \n",
ip_address_key, table->bucket_num);
// printk(KERN_ERR "ip_address_key %08X table->bucket_num: %d \n",
// ip_address_key, table->bucket_num);
spin_lock(&table->lock);
// int idx = hash_32(ip_address_key, table->bucket_num);