Oops, this came about because the libdns_sd and Avahi APIs differ in which byte order they require the port number. The Avahi API requires it in host order.
Remove the htons() calls from avahi_entry_group_add_service() and avahi_entry_group_add_service_strlst().
Oops, this came about because the libdns_sd and Avahi APIs differ in which byte order they require the port number. The Avahi API requires it in host order.
Remove the htons() calls from avahi_entry_ group_add_ service( ) and avahi_entry_ group_add_ service_ strlst( ).