Lines Matching refs:pretty_hostname
63 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()
360 … lldp_tx->pretty_hostname ?: pretty_hostname); in lldp_tx_create_packet()
411 lldp_tx->pretty_hostname ?: pretty_hostname); in lldp_tx_create_packet()