Lines Matching refs:hosthash
113 static hashtable_t hosthash[HOSTHASHSIZE]; variable
362 if ((key == hosthash[ix].ht_key) && in gethname()
363 (hosthash[ix].ht_type == tid->at_type)) { in gethname()
367 if (hosthash[ix].ht_ip[i] != tid->at_addr[i]) { in gethname()
373 } else if (key == hosthash[ix].ht_key) { in gethname()
377 hosthash[ix].ht_key = key; in gethname()
378 hosthash[ix].ht_type = tid->at_type; in gethname()
381 hosthash[ix].ht_ip[0] = tid->at_addr[0]; in gethname()
384 (void) memcpy((char *)hosthash[ix].ht_ip, in gethname()
393 hosthash[ix].ht_value, MAXHOSTNAMELEN); in gethname()
394 hosthash[ix].ht_length = strlen(hosthash[ix].ht_value); in gethname()
396 hosthash[ix].ht_length = strlcpy(hosthash[ix].ht_value, in gethname()
401 l = hosthash[ix].ht_length + 1; in gethname()
405 len = prefix_len + strlcpy(p, hosthash[ix].ht_value, l); in gethname()
879 if (init_hash(hosthash, 0, HOSTHASHSIZE, MAXHOSTNAMELEN)) in auditd_plugin_open()
906 free_hash(hosthash, HOSTHASHSIZE); in auditd_plugin_close()