Lines Matching refs:ip_string

239 static inline Host_entry *hostname_cache_search(const char *ip_string) {  in hostname_cache_search()  argument
242 auto it = hostname_cache_by_ip->find(ip_string); in hostname_cache_search()
251 static void add_hostname_impl(const char *ip_string, const char *hostname, in add_hostname_impl() argument
259 entry = hostname_cache_search(ip_string); in add_hostname_impl()
266 strcpy(entry->ip_key, ip_string); in add_hostname_impl()
290 ip_string, entry->m_hostname)); in add_hostname_impl()
296 ip_string)); in add_hostname_impl()
311 ip_string)); in add_hostname_impl()
331 static void add_hostname(const char *ip_string, const char *hostname, in add_hostname() argument
341 add_hostname_impl(ip_string, hostname, validated, errors, now); in add_hostname()
346 void inc_host_errors(const char *ip_string, Host_errors *errors) { in inc_host_errors() argument
349 if (!ip_string) return; in inc_host_errors()
355 Host_entry *entry = hostname_cache_search(ip_string); in inc_host_errors()
368 void reset_host_connect_errors(const char *ip_string) { in reset_host_connect_errors() argument
371 if (!ip_string) return; in reset_host_connect_errors()
375 Host_entry *entry = hostname_cache_search(ip_string); in reset_host_connect_errors()
445 int ip_to_hostname(struct sockaddr_storage *ip_storage, const char *ip_string, in ip_to_hostname() argument
455 ("IP address: '%s'; family: %d.", ip_string, (int)ip->sa_family)); in ip_to_hostname()
479 Host_entry *entry = hostname_cache_search(ip_string); in ip_to_hostname()
503 ip_string, (*hostname ? *hostname : "null"))); in ip_to_hostname()
517 DBUG_PRINT("info", ("Resolving '%s'...", (const char *)ip_string)); in ip_to_hostname()
580 DBUG_PRINT("error", ("IP address '%s' could not be resolved: %s", ip_string, in ip_to_hostname()
583 LogErr(WARNING_LEVEL, ER_UNABLE_TO_RESOLVE_IP, ip_string, in ip_to_hostname()
603 add_hostname(ip_string, nullptr, validated, &errors); in ip_to_hostname()
608 DBUG_PRINT("info", ("IP '%s' resolved to '%s'.", (const char *)ip_string, in ip_to_hostname()
630 ip_string, hostname_buffer)); in ip_to_hostname()
632 LogErr(WARNING_LEVEL, ER_HOSTNAME_RESEMBLES_IPV4, ip_string, in ip_to_hostname()
636 add_hostname(ip_string, hostname_buffer, false, &errors); in ip_to_hostname()
913 add_hostname(ip_string, nullptr, validated, &errors); in ip_to_hostname()
937 if (native_strcasecmp(ip_string, ip_buffer) == 0) { in ip_to_hostname()
960 ip_string); in ip_to_hostname()
981 add_hostname(ip_string, *hostname, true, &errors); in ip_to_hostname()