Lines Matching refs:llmnr_hostname
324 static int determine_hostname(char **llmnr_hostname, char **mdns_hostname) {
330 assert(llmnr_hostname);
373 *llmnr_hostname = n;
380 _cleanup_free_ char *llmnr_hostname = NULL, *mdns_hostname = NULL;
386 r = determine_hostname(&llmnr_hostname, &mdns_hostname);
390 if (streq(llmnr_hostname, m->llmnr_hostname) && streq(mdns_hostname, m->mdns_hostname))
393 log_info("System hostname changed to '%s'.", llmnr_hostname);
395 free(m->llmnr_hostname);
398 m->llmnr_hostname = llmnr_hostname;
401 llmnr_hostname = mdns_hostname = NULL;
430 r = determine_hostname(&m->llmnr_hostname, &m->mdns_hostname);
433 m->llmnr_hostname = strdup("linux");
434 if (!m->llmnr_hostname)
441 log_info("Using system hostname '%s'.", m->llmnr_hostname);
597 free(m->llmnr_hostname);
970 p = strchr(m->llmnr_hostname, 0);
973 while (p > m->llmnr_hostname) {
993 if (asprintf(&h, "%.*s%" PRIu64, (int) (p - m->llmnr_hostname), m->llmnr_hostname, u) < 0)
1002 log_info("Hostname conflict, changing published hostname from '%s' to '%s'.", m->llmnr_hostname, h);
1004 free(m->llmnr_hostname);
1005 m->llmnr_hostname = h;
1088 if (m->llmnr_hostname) {
1089 r = dns_name_equal(name, m->llmnr_hostname);