Home
last modified time | relevance | path

Searched refs:pretty_hostname (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/libsystemd-network/
Dsd-lldp-tx.c63 char *pretty_hostname; member
88 free(lldp_tx->pretty_hostname); in lldp_tx_free()
197 int sd_lldp_tx_set_pretty_hostname(sd_lldp_tx *lldp_tx, const char *pretty_hostname) { in sd_lldp_tx_set_pretty_hostname() argument
201 if (strlen_ptr(pretty_hostname) >= 512) in sd_lldp_tx_set_pretty_hostname()
204 return free_and_strdup(&lldp_tx->pretty_hostname, empty_to_null(pretty_hostname)); in sd_lldp_tx_set_pretty_hostname()
224 …ulate_maximum_packet_size(sd_lldp_tx *lldp_tx, const char *hostname, const char *pretty_hostname) { in lldp_tx_calculate_maximum_packet_size() argument
240 2 + strlen_ptr(pretty_hostname) + in lldp_tx_calculate_maximum_packet_size()
332 _cleanup_free_ char *hostname = NULL, *pretty_hostname = NULL; in lldp_tx_create_packet() local
355 if (!lldp_tx->pretty_hostname) in lldp_tx_create_packet()
356 (void) get_pretty_hostname(&pretty_hostname); in lldp_tx_create_packet()
[all …]
/systemd-251/src/hostname/
Dhostnamectl.c40 const char *pretty_hostname; member
105 if (!isempty(i->pretty_hostname) && in print_status_info()
106 !streq_ptr(i->pretty_hostname, i->static_hostname)) { in print_status_info()
109 TABLE_STRING, i->pretty_hostname); in print_status_info()
299 { "PrettyHostname", "s", NULL, offsetof(StatusInfo, pretty_hostname) }, in show_all_names()
/systemd-251/src/systemd/
Dsd-lldp-tx.h62 int sd_lldp_tx_set_pretty_hostname(sd_lldp_tx *lldp_tx, const char *pretty_hostname);
/systemd-251/src/test/
Dtest-unit-name.c239 *hostname, *short_hostname, *pretty_hostname, variable
261 assert_se(specifier_pretty_hostname('q', NULL, NULL, NULL, &pretty_hostname) == 0);
262 assert_se(pretty_hostname);
319 expect(u, "%q", pretty_hostname);