Lines Matching +defs:src +defs:hash

8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
85 int indx, tnd_tnrhdb_t *src);
87 static int update_cache_table(tsol_rhent_t *ent, tnd_tnrhdb_t *src);
97 int indx, tnd_tnrhdb_t *src);
98 static int update_cache_table_v6(tsol_rhent_t *ent, tnd_tnrhdb_t *src);
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.
791 if (tlbt->src->visited == 0) {
866 if (tlbt->src->visited == 0) {
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];
1170 tnd_tnrhdb_t *src)
1172 unsigned char hash;
1175 hash = (unsigned char) get_hashvalue(addr);
1189 tlbt->src = src;
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];
1223 tnd_tnrhdb_t *src)
1225 unsigned char hash;
1228 hash = (unsigned char) TNRH_ADDR_HASH_V6(addr);
1241 tlbt->src = src;
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];
1276 update_cache_table(tsol_rhent_t *ent, tnd_tnrhdb_t *src)
1330 rflag += walk_cache_table(addr, ent->rh_template, ent->rh_prefix, src);
1339 update_cache_table_v6(tsol_rhent_t *ent, tnd_tnrhdb_t *src)
1381 ent->rh_prefix, src);
1410 walk_cache_table(in_addr_t newaddr, char *name, int indx, tnd_tnrhdb_t *src)
1422 tlbt->src = src;
1473 walk_cache_table_v6(in6_addr_t newaddr, char *name, int indx, tnd_tnrhdb_t *src)
1485 tlbt->src = src;