Lines Matching refs:hash_entry

86 	const struct prefix *hash_entry = data;  in log_key()  local
87 struct prefix_ipv6 *dst_p = (struct prefix_ipv6 *)&hash_entry[0]; in log_key()
88 struct prefix_ipv6 *src_p = (struct prefix_ipv6 *)&hash_entry[1]; in log_key()
153 struct prefix hash_entry[2]; in test_state_add_route() local
155 memset(hash_entry, 0, sizeof(hash_entry)); in test_state_add_route()
156 memcpy(&hash_entry[0], dst_p, sizeof(*dst_p)); in test_state_add_route()
157 memcpy(&hash_entry[1], src_p, sizeof(*src_p)); in test_state_add_route()
161 assert(hash_lookup(test->log, hash_entry) != NULL); in test_state_add_route()
164 assert(hash_lookup(test->log, hash_entry) == NULL); in test_state_add_route()
168 hash_get(test->log, hash_entry, log_alloc); in test_state_add_route()
177 struct prefix hash_entry[2]; in test_state_del_route() local
179 memset(hash_entry, 0, sizeof(hash_entry)); in test_state_del_route()
180 memcpy(&hash_entry[0], dst_p, sizeof(*dst_p)); in test_state_del_route()
181 memcpy(&hash_entry[1], src_p, sizeof(*src_p)); in test_state_del_route()
184 assert(!hash_lookup(test->log, hash_entry)); in test_state_del_route()
193 struct prefix *hash_entry_intern = hash_release(test->log, hash_entry); in test_state_del_route()
201 struct prefix *hash_entry = bucket->data; in verify_log() local
202 struct prefix *dst_p = &hash_entry[0]; in verify_log()
203 struct prefix_ipv6 *src_p = (struct prefix_ipv6 *)&hash_entry[1]; in verify_log()
214 struct prefix *hash_entry = bucket->data; in dump_log() local
215 struct prefix_ipv6 *dst_p = (struct prefix_ipv6 *)&hash_entry[0]; in dump_log()
216 struct prefix_ipv6 *src_p = (struct prefix_ipv6 *)&hash_entry[1]; in dump_log()
247 struct prefix hash_entry[2]; in test_state_verify() local
249 memset(hash_entry, 0, sizeof(hash_entry)); in test_state_verify()
310 memcpy(&hash_entry[0], dst_p, sizeof(*dst_p)); in test_state_verify()
312 memcpy(&hash_entry[1], src_p, sizeof(*src_p)); in test_state_verify()
314 memset(&hash_entry[1], 0, sizeof(hash_entry[1])); in test_state_verify()
316 if (hash_lookup(test->log, hash_entry) == NULL) in test_state_verify()