Great!<br>I
really
need
this
feature.<br>BTW
I
tried
implementing
something,
but
I'm
not
that
much
familiar
with
the
avahi
internals.<br>I'm
attaching
my
patch.
Basically
I
was
able
to
transfer
registered
local
services
into
the
cache
without
receiving
a
messages
on
the
network.<br>Of
course
that
is
just
one
step.
The
cache
needs
to
be
kept
up
to
date.<br>I
used
the
following
call
to
test:<br>
avahi_server_add_service(server,
group,
1,
AVAHI_PROTO_UNSPEC,
AVAHI_PUBLISH_NO_ANNOUNCE,
"My
Service
Name",
"_daap._tcp",
NULL,
NULL,
7777,
"foo",
NULL);<br><br>I
used
avahi-0.6.21
source.<br><br>--Yavor<br><br>PS:
I'll
file
a
wishlist bug
too.<br><br><div class="gmail_quote">On Feb 12, 2008 6:17 AM, Lennart Poettering <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, 24.01.08 10:46, Yavor Goulishev (<a href="mailto:ygoulishev@gmail.com">ygoulishev@gmail.com</a>) wrote:<br><br>> Hi all,<br>> I'm trying to register local only services.<br>> The services should not be visible from other machines.<br>
><br>> I can do this with Bonjour by passing the interface index<br>> kDNSServiceInterfaceIndexLocalOnly (-1) to the DNSServiceRegister function<br>> call.<br>><br>> Unfortunately I can't do this with Avahi. Passing -1 for the interface index<br>
> means unspecified.<br>> Looking at the core code, this feature is not implemented.<br>> Are there any plans for implementing it?<br><br></div>Hmm, I wasn't aware of this feature of Bonjour. It might make sense to<br>
add this. Please file a wishlist bug on our BTS so I don't forget<br>about this.<br><br>I see no practical reason why we shouldn't implement something like this.<br><div class="Ih2E3d"><br>> Is there any other way to register local only services with Avahi?<br>
<br></div>Nope. We have some stuff to implement the inverse (i.e. not show local<br>services), but I guess that doesn't help much..,<br><br>Lennart<br><font color="#888888"><br>--<br>Lennart Poettering Red Hat, Inc.<br>
lennart [at] poettering [dot] net ICQ# 11060553<br><a href="http://0pointer.net/lennart/" target="_blank">http://0pointer.net/lennart/</a> GnuPG 0x1A015CC4<br>_______________________________________________<br>
</font><div><div></div><div class="Wj3C7c">avahi mailing list<br><a href="mailto:avahi@lists.freedesktop.org">avahi@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/avahi" target="_blank">http://lists.freedesktop.org/mailman/listinfo/avahi</a><br>
</div></div></blockquote></div><br>