[avahi] Registering to a specific interface?

Lennart Poettering lennart at poettering.net
Mon Aug 18 17:17:59 PDT 2008

On Mon, 18.08.08 16:04, Michael Bishop (mbishop at perforce.com) wrote:

> Avahi folk,
> I'm most used to the DNSSD calls and am trying to find similar  
> functionality in avahi. I see that when registering a service using  
> Bonjour, I can specify a specific interface upon which to
> register...

This we support:


The "AvahiIfIndex interface" parameter is what you are looking
for. You can fill in any interface index that is returned by functions
like if_nametoindex(), and that are considered "relevant" by Avahi.

> In particular, I can specify a constant so it will register in a way  
> that only processes on the local machine can see it

As Trent already mentioned this is not possible with Avahi right now,
because Avahi ignores loopback devices as "irrelevant".


Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the avahi mailing list