[avahi] Unicast service publishing [SOLVED]

Amit amit.uttam at gmail.com
Tue Nov 13 11:28:14 PST 2012

Amit <amit.uttam at ...> writes:

> Hello,
> Is it possible to use avahi to publish services only for a single
> device? That is a unicast service publishing? So the user would enter an
> IP address/host name for the client and avahi "publishes" the service
> only for that client.

The solution was basically a hack of avahi-core. In avahi-core, the
*avahi_interface_send_packet* can be modified to call
*avahi_interface_send_packet_unicast* with a specific destination
address and port. Also in avahi-core, had to allow the server to respond
to non-local responses.

This allows for avahi to publish/respond to services across subnets (as
long as there is a valid route between the subnets).

More information about the avahi mailing list