Searched refs:iphash (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/net/netfilter/ |
D | xt_connlimit.c | 42 struct hlist_head iphash[256]; member 111 hash = &data->iphash[connlimit_iphash6(addr, mask)]; in count_them() 113 hash = &data->iphash[connlimit_iphash(addr->ip & mask->ip)]; in count_them() 251 for (i = 0; i < ARRAY_SIZE(info->data->iphash); ++i) in connlimit_mt_check() 252 INIT_HLIST_HEAD(&info->data->iphash[i]); in connlimit_mt_check() 262 struct hlist_head *hash = info->data->iphash; in connlimit_mt_destroy() 267 for (i = 0; i < ARRAY_SIZE(info->data->iphash); ++i) { in connlimit_mt_destroy()
|
D | xt_recent.c | 81 struct list_head iphash[0]; member 132 list_for_each_entry(e, &table->iphash[h], list) in recent_entry_lookup() 188 list_add_tail(&e->list, &t->iphash[recent_entry_hash4(addr)]); in recent_entry_init() 190 list_add_tail(&e->list, &t->iphash[recent_entry_hash6(addr)]); in recent_entry_init() 222 list_for_each_entry_safe(e, next, &t->iphash[i], list) in recent_table_flush() 357 t = kzalloc(sizeof(*t) + sizeof(t->iphash[0]) * ip_list_hash_size, in recent_mt_check() 367 INIT_LIST_HEAD(&t->iphash[i]); in recent_mt_check() 426 list_for_each_entry(e, &t->iphash[st->bucket], list) in recent_seq_start() 439 while (head == &t->iphash[st->bucket]) { in recent_seq_next() 442 head = t->iphash[st->bucket].next; in recent_seq_next()
|