Lines Matching defs:hash

156  * This is a table of hash tables to keep
158 * a separate hash bucket structure, instead mantain
159 * a pointer to the hash chain.
170 * This is a hash table which keeps fully resolved
172 * a separate hash bucket structure, instead
173 * mantain a pointer to the hash chain.
924 * Search the hash chain for the address. If not found,
925 * add the entry to the hash table. If necessary,
926 * construct the hash table.
933 unsigned char hash;
941 hash = (unsigned char) get_hashvalue(saddrp->sin_addr.s_addr);
956 rhent = tnrh_entire_table[i][hash];
958 (void) fprintf(logf, gettext("\tsearch_and_update i = %d hash = %d\n"),
959 i, hash);
1007 new->rh_next = tnrh_entire_table[i][hash];
1008 tnrh_entire_table[i][hash] = new;
1010 (void) fprintf(logf, gettext("rhtable added i = %d, hash = %d\n"),
1011 i, hash);
1024 * Search the hash chain for the address. If not found,
1025 * add the entry to the hash table. If necessary,
1026 * construct the hash table.
1032 unsigned char hash;
1043 hash = (unsigned char) TNRH_ADDR_MASK_HASH_V6(saddrp->sin6_addr,
1053 rhent = tnrh_entire_table_v6[i][hash];
1092 new->rh_next = tnrh_entire_table_v6[i][hash];
1093 tnrh_entire_table_v6[i][hash] = new;
1102 * The array element i points to the hash table.
1103 * Search the hash chain for the address.
1108 unsigned char hash;
1114 hash = (unsigned char) get_hashvalue(saddrp->sin_addr.s_addr);
1115 rhent = tnrh_entire_table[i][hash];
1118 (void) fprintf(logf, gettext("rhtable_lookup i = %d, hash = %d\n"),
1119 i, hash);
1143 * The array element i points to the hash table.
1144 * Search the hash chain for the address.
1149 unsigned char hash;
1155 hash = (unsigned char) TNRH_ADDR_MASK_HASH_V6(saddrp->sin6_addr, mask);
1156 rhent = tnrh_entire_table_v6[i][hash];
1172 unsigned char hash;
1175 hash = (unsigned char) get_hashvalue(addr);
1196 if (tnrh_cache_table[hash] == NULL) {
1197 tnrh_cache_table[hash] = tlbt;
1200 tlbt->next = tnrh_cache_table[hash];
1201 tnrh_cache_table[hash] = tlbt;
1209 unsigned char hash;
1211 hash = (unsigned char) get_hashvalue(addr);
1212 tlbt = tnrh_cache_table[hash];
1225 unsigned char hash;
1228 hash = (unsigned char) TNRH_ADDR_HASH_V6(addr);
1244 if (tnrh_cache_table_v6[hash] == NULL) {
1245 tnrh_cache_table_v6[hash] = tlbt;
1248 tlbt->next = tnrh_cache_table_v6[hash];
1249 tnrh_cache_table_v6[hash] = tlbt;
1257 unsigned char hash;
1259 hash = (unsigned char) TNRH_ADDR_HASH_V6(addr);
1260 tlbt = tnrh_cache_table_v6[hash];