Lines Matching refs:hash
83 napt_hash_buf_init(struct napt_ct **hash, struct nhlist_head **hash_head)
88 *hash = (struct napt_ct *)kmalloc(sizeof(struct napt_ct)*buffer_size, GFP_ATOMIC);
89 if(!(*hash))
99 kfree(*hash);
103 memset(*hash,0,sizeof(struct napt_ct)*buffer_size);
120 struct napt_ct *hash, struct nhlist_head *hash_head)
148 if (hash[i].ct_addr == 0)
153 if (hash[j].ct_addr == 0)
163 node = &(hash[index]);
185 struct napt_ct *hash, struct nhlist_head *hash_head)
825 HNAT_ERR_PRINTK("<napt_ct_scan> error hash full\n");
994 a_uint32_t hash = 0, iterate = 0;
1000 while((ct_addr = NAPT_CT_LIST_ITERATE(&hash, &iterate)))
1030 HNAT_ERR_PRINTK("<napt_ct_buffer_update> error hash full\n");
1041 a_uint32_t hash = 0;
1046 while((ct_addr = NAPT_CT_LIST_ITERATE(&hash, &iterate)))