[avahi] Publishing Services on Specific Interfaces

Shilliday, Peter Peter.Shilliday at garmin.com
Tue Apr 28 15:33:49 UTC 2020


I am integrating avahi-client in a Linux application to publish a TCP-based service on two separate local networks, each on their own interface.  Since the service uses the ephemeral TCP port range, the listening port on network #1 and network #2 will almost always be different, so I want to add the service on each network/interface individually as to publish the right port number.  It appears avahi_entry_group_add_service() can take an interface index argument for this purpose; how can I look up the index for a given interface/network on my system?



Thanks,

Peter Shilliday

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/avahi/attachments/20200428/cb1dbe34/attachment.htm>


More information about the avahi mailing list