Lines Matching defs:rec
29 login_proxy_record_hash(const struct login_proxy_record *rec)
31 return net_ip_hash(&rec->ip) ^ rec->port;
65 struct login_proxy_record *rec;
71 while (hash_table_iterate(iter, state->hash, &rec, &rec))
72 i_assert(rec->num_waiting_connections == 0);
86 struct login_proxy_record *rec, key;
92 rec = hash_table_lookup(state->hash, &key);
93 if (rec == NULL) {
94 rec = p_new(state->pool, struct login_proxy_record, 1);
95 rec->ip = *ip;
96 rec->port = port;
97 hash_table_insert(state->hash, rec, rec);
99 return rec;