Lines Matching refs:mdns_hostname
355 static int determine_hostnames(char **full_hostname, char **llmnr_hostname, char **mdns_hostname) { in determine_hostnames() argument
361 assert(mdns_hostname); in determine_hostnames()
367 r = dns_name_concat(n, "local", 0, mdns_hostname); in determine_hostnames()
393 …ic int make_fallback_hostnames(char **full_hostname, char **llmnr_hostname, char **mdns_hostname) { in make_fallback_hostnames() argument
401 assert(mdns_hostname); in make_fallback_hostnames()
422 *mdns_hostname = TAKE_PTR(m); in make_fallback_hostnames()
429 _cleanup_free_ char *full_hostname = NULL, *llmnr_hostname = NULL, *mdns_hostname = NULL; in on_hostname_change() local
436 r = determine_hostnames(&full_hostname, &llmnr_hostname, &mdns_hostname); in on_hostname_change()
445 streq(mdns_hostname, m->mdns_hostname)) in on_hostname_change()
452 free_and_replace(m->mdns_hostname, mdns_hostname); in on_hostname_change()
483 r = determine_hostnames(&m->full_hostname, &m->llmnr_hostname, &m->mdns_hostname); in manager_watch_hostname()
493 … r = make_fallback_hostnames(&m->full_hostname, &m->llmnr_hostname, &m->mdns_hostname); in manager_watch_hostname()
736 free(m->mdns_hostname); in manager_free()
1216 free_and_replace(m->mdns_hostname, k); in manager_next_hostname()
1324 if (m->mdns_hostname) { in manager_is_own_hostname()
1325 r = dns_name_equal(name, m->mdns_hostname); in manager_is_own_hostname()