[avahi] Avahi published service only appears for less than 30 secs after starting daemon
Michael Tyson
mtyson at smartpath.com.au
Tue Feb 5 15:41:12 PST 2008
Attached is results from tcpdump for the duration of the working
period for Avahi:
17:12:41.713510 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 432) 192.168.3.118.mdns > 224.0.0.251.mdns: 0*-
[0q] 12/0/0 loc8.local. (Cache flush) AAAA fe80::20c:29ff:fe4a:80db,
b.d.0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa. (Cache flush) PTR
loc8.local., loc8.local. (Cache flush) A 192.168.3.118,
118.3.168.192.in-addr.arpa. (Cache flush) PTR loc8.local., loc8.local.
(Cache flush) HINFO, _workstation._tcp.local. PTR loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local., loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local. (Cache flush) SRV loc8.local.:9 0 0,
loc8 [00:0c:29:4a:80:db]._workstation._tcp.local. (Cache flush) TXT
"", _http._tcp.local. PTR Loc8 at loc8._http._tcp.local., Loc8 at
loc8._http._tcp.local. (Cache flush) SRV loc8.local.:80 0 0, Loc8 at
loc8._http._tcp.local. (Cache flush) TXT "", _services._dns-
sd._udp.local. PTR _http._tcp.local. (404)
E
..... at ...."...v
.........................loc8.local.....................)..J...b.d.
0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8
.e.f.ip6.arpa............................v.118.3.168.192.in-
addr.v..............I686.LINUX._workstation._tcp.............loc8
[00:0c:29:4a:
80:db].....!............. ................_http.............Loc8 at
loc8.-.?.!.............P...?........... _services._dns-
sd._udp.............-
17:12:41.716921 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto
IGMP (2), length 40, options (RA)) 192.168.3.118 > 224.0.0.22: igmp v3
report, 1 group record(s) [gaddr 224.0.0.251 to_in, 0 source(s)]
F..(.. at ...?....v........"...............
17:12:41.876898 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto
IGMP (2), length 40, options (RA)) 192.168.3.118 > 224.0.0.22: igmp v3
report, 1 group record(s) [gaddr 224.0.0.251 to_ex, 0 source(s)]
F..(.. at ...?....v........"...............
17:12:42.149439 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 257) 192.168.3.118.mdns > 224.0.0.251.mdns: 0
[3q] [5n] ANY (QM)? b.d.0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa. ANY (QM)? loc8.local.
ANY (QM)? 118.3.168.192.in-addr.arpa. (229)
.....x
...I686
.LINUX
.Z
.......x
.....v
.j
.......x
...Z
.Z
.......x
............)..J
...........x...Z0.0.0.0.8.e.f.ip6.arpa......loc8.local......
118.3.168.192.in-addr.P.....Z.
17:12:42.401731 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 257) 192.168.3.118.mdns > 224.0.0.251.mdns: 0
[3q] [5n] ANY (QM)? b.d.0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa. ANY (QM)? loc8.local.
ANY (QM)? 118.3.168.192.in-addr.arpa. (229)
.....x
...I686
.LINUX
.Z
.......x
.....v
.j
.......x
...Z
.Z
.......x
............)..J
...........x...Z0.0.0.0.8.e.f.ip6.arpa......loc8.local......
118.3.168.192.in-addr.P.....Z.
17:12:42.654230 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 257) 192.168.3.118.mdns > 224.0.0.251.mdns: 0
[3q] [5n] ANY (QM)? b.d.0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa. ANY (QM)? loc8.local.
ANY (QM)? 118.3.168.192.in-addr.arpa. (229)
.....x
...I686
.LINUX
.Z
.......x
.....v
.j
.......x
...Z
.Z
.......x
............)..J
...........x...Z0.0.0.0.8.e.f.ip6.arpa......loc8.local......
118.3.168.192.in-addr.P.....Z.
17:12:42.855379 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 239) 192.168.3.118.mdns > 224.0.0.251.mdns: 0*-
[0q] 5/0/0 b.d.0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa. (Cache flush) PTR
loc8.local., loc8.local. (Cache flush) HINFO, loc8.local. (Cache
flush) A 192.168.3.118, 118.3.168.192.in-addr.arpa. (Cache flush) PTR
loc8.local., loc8.local. (Cache flush) AAAA fe80::20c:29ff:fe4a:80db
(211)
.....x...I686.LINUX.`.......x.....v.118.3.168.192.in-
addr.P.......x...`.`.......x............)..J..
8.e.f.ip6.arpa........x...loc8.local..`.
17:12:43.130105 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 190) 192.168.3.118.mdns > 224.0.0.251.mdns: 0
[2q] [4n] ANY (QM)? loc8 [00:0c:29:4a:80:db]._workstation._tcp.local.
ANY (QM)? Loc8 at loc8._http._tcp.local. (162)
.....P.loc8.7.B..............!.....x.......c8
[0.m.............b]._workstation._tcp.local......Loc8 at loc8._http.
2.....B.!.....x.
17:12:43.381497 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 190) 192.168.3.118.mdns > 224.0.0.251.mdns: 0
[2q] [4n] ANY (QM)? loc8 [00:0c:29:4a:80:db]._workstation._tcp.local.
ANY (QM)? Loc8 at loc8._http._tcp.local. (162)
.....P.loc8.7.B..............!.....x.......c8
[0.m.............b]._workstation._tcp.local......Loc8 at loc8._http.
2.....B.!.....x.
17:12:43.633954 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 190) 192.168.3.118.mdns > 224.0.0.251.mdns: 0
[2q] [4n] ANY (QM)? loc8 [00:0c:29:4a:80:db]._workstation._tcp.local.
ANY (QM)? Loc8 at loc8._http._tcp.local. (162)
.....P.loc8.7.B..............!.....x.......c8
[0.m.............b]._workstation._tcp.local......Loc8 at loc8._http.
2.....B.!.....x.
17:12:43.834736 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 301) 192.168.3.118.mdns > 224.0.0.251.mdns: 0*-
[0q] 10/0/0 loc8 [00:0c:29:4a:80:db]._workstation._tcp.local. (Cache
flush) TXT "", _http._tcp.local. PTR Loc8 at loc8._http._tcp.local.,
Loc8 at loc8._http._tcp.local. (Cache flush) SRV loc8.local.:80 0 0,
loc8.local. (Cache flush) AAAA fe80::20c:29ff:fe4a:80db, loc8.local.
(Cache flush) A 192.168.3.118, Loc8 at loc8._http._tcp.local. (Cache
flush) TXT "", _services._dns-sd._udp.local. PTR _http._tcp.local.,
_workstation._tcp.local. PTR loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local., loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local. (Cache flush) SRV loc8.local.:9 0 0,
_services._dns-sd._udp.local. PTR _workstation._tcp.local. (273)
E..-.. at ........v..........R........
.....P.loc8.7.|.......x............)..J...|.......x.....v.
[...........p._services._dns-sd._udp.7...........I.
%...............!.....x....... .|.............%
17:12:44.078486 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 195) 192.168.3.118.mdns > 224.0.0.251.mdns: 0*-
[0q] 3/0/0 b.d.0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa. (Cache flush) PTR
loc8.local., loc8.local. (Cache flush) HINFO, 118.3.168.192.in-
addr.arpa. (Cache flush) PTR loc8.local. (167)
.....x...I686.LINUX.118.3.168.192.in-addr.P.......x...`f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa........x...loc8.local..`.
17:12:45.058972 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 301) 192.168.3.118.mdns > 224.0.0.251.mdns: 0*-
[0q] 10/0/0 loc8 [00:0c:29:4a:80:db]._workstation._tcp.local. (Cache
flush) TXT "", _http._tcp.local. PTR Loc8 at loc8._http._tcp.local.,
Loc8 at loc8._http._tcp.local. (Cache flush) SRV loc8.local.:80 0 0,
loc8.local. (Cache flush) AAAA fe80::20c:29ff:fe4a:80db, loc8.local.
(Cache flush) A 192.168.3.118, Loc8 at loc8._http._tcp.local. (Cache
flush) TXT "", _services._dns-sd._udp.local. PTR _http._tcp.local.,
_workstation._tcp.local. PTR loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local., loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local. (Cache flush) SRV loc8.local.:9 0 0,
_services._dns-sd._udp.local. PTR _workstation._tcp.local. (273)
E..-.. at ........v..........R........
.....P.loc8.7.|.......x............)..J...|.......x.....v.
[...........p._services._dns-sd._udp.7...........I.
%...............!.....x....... .|.............%
17:12:46.302523 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 239) 192.168.3.118.mdns > 224.0.0.251.mdns: 0*-
[0q] 5/0/0 b.d.0.8.a.4.e.f.f.f.9.2.c.
0.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa. (Cache flush) PTR
loc8.local., loc8.local. (Cache flush) HINFO, loc8.local. (Cache
flush) A 192.168.3.118, 118.3.168.192.in-addr.arpa. (Cache flush) PTR
loc8.local., loc8.local. (Cache flush) AAAA fe80::20c:29ff:fe4a:80db
(211)
.....x...I686.LINUX.`.......x.....v.118.3.168.192.in-
addr.P.......x...`.`.......x............)..J..
8.e.f.ip6.arpa........x...loc8.local..`.
17:12:47.282843 IP (tos 0x0, ttl 255, id 0, offset 0, flags [DF],
proto UDP (17), length 301) 192.168.3.118.mdns > 224.0.0.251.mdns: 0*-
[0q] 10/0/0 loc8 [00:0c:29:4a:80:db]._workstation._tcp.local. (Cache
flush) TXT "", _http._tcp.local. PTR Loc8 at loc8._http._tcp.local.,
Loc8 at loc8._http._tcp.local. (Cache flush) SRV loc8.local.:80 0 0,
loc8.local. (Cache flush) AAAA fe80::20c:29ff:fe4a:80db, loc8.local.
(Cache flush) A 192.168.3.118, Loc8 at loc8._http._tcp.local. (Cache
flush) TXT "", _services._dns-sd._udp.local. PTR _http._tcp.local.,
_workstation._tcp.local. PTR loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local., loc8 [00:0c:29:4a:
80:db]._workstation._tcp.local. (Cache flush) SRV loc8.local.:9 0 0,
_services._dns-sd._udp.local. PTR _workstation._tcp.local. (273)
E..-.. at ........v..........R........
.....P.loc8.7.|.......x............)..J...|.......x.....v.
[...........p._services._dns-sd._udp.7...........I.
%...............!.....x....... .|.............%
17:12:48.004968 IP (tos 0xc0, ttl 1, id 0, offset 0, flags [DF], proto
IGMP (2), length 40, options (RA)) 192.168.3.118 > 224.0.0.22: igmp v3
report, 1 group record(s) [gaddr 224.0.0.251 to_ex, 0 source(s)]
F..(.. at ...?....v........"...............
17:12:48.783476 IP (tos 0x0, ttl 128, id 14340, offset 0, flags
[none], proto UDP (17), length 328) 192.168.3.111.bootpc >
255.255.255.255.bootps: BOOTP/DHCP, Request from 00:18:de:bb:eb:d8
(oui Unknown), length 300, xid 0x6e0ddf52, Flags [Broadcast]
Client-IP 192.168.3.111
Client-Ethernet-Address 00:18:de:bb:eb:d8 (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Inform
Client-ID Option 61, length 7: ether 00:18:de:bb:eb:d8
Hostname Option 12, length 15: "XxxxxxxXxxxx-PC"
Vendor-Class Option 60, length 8: "MSFT 5.0"
Parameter-Request Option 55, length 13:
Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-
Discovery
Static-Route, Option 121, Option 249, Vendor-Option
Option 252
.R
.......o
...........................................................................................................................................................................................................,./.!y
.+.........c.Sc5..=.......... XxxxxxxXxxxx-PC<.MSFT 5.07
17:12:48.841636 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none],
proto UDP (17), length 576) 192.168.3.1.bootps >
255.255.255.255.bootpc: BOOTP/DHCP, Reply, length 548, xid 0x6e0ddf52,
Flags [Broadcast]
Client-IP 192.168.3.111
Client-Ethernet-Address 00:18:de:bb:eb:d8 (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 192.168.3.1
Subnet-Mask Option 1, length 4: 255.255.255.0
Default-Gateway Option 3, length 4: 192.168.3.1
Domain-Name-Server Option 6, length 4: 192.168.3.1
Domain-Name Option 15, length 9: "Smartpath"
.R
.......o............................................................................................................................................................................................................................c.Sc5..6........................ Smartpath..............................................................................................................................................................................................................................................................................
1
On 05/02/2008, at 12:24 PM, Michael Tyson wrote:
> Hi list!
>
> I'm running Avahi 0.6.22-2 on an Ubuntu box (Kernel version
> 2.6.22-14-virtual), running underneath VMWare Player - it's a
> virtual appliance in-the-making. I'm using avahi-daemon to publish
> a single _http._tcp service to help with discovery. The Avahi
> configuration is all default from the installation (listed below);
> the service configuration a standard .service xml file within /etc/
> avahi/services (also listed below).
>
> Upon starting the daemon, the service appears to be being published
> correctly - it appears both under Safari (which lists advertised
> http services) on my mac, and in the management application I'm
> writing in .NET running in Windows.
>
> However, after some small amount of time - approximately 30 seconds
> - the service disappears; it no longer appears in either app. The
> avahi daemon appears to still be running after this - it appears in
> the process list.
>
> After restarting the daemon, the service reappears again.
>
> As a workaround, I've made a script that restarts the avahi daemon
> every 30 seconds, but that is a less-than-ideal solution =)
>
> After reading reports that proprietary network card drivers can have
> issues with multicast, I experimented with changing the virtual
> network device in the VMWare configuration from the default 'vmxnet'
> - I tried 'e1000', which appears not to be supported by the kernel,
> and 'vlance', which worked but yielded exactly the same results - no
> service after approx 30 seconds.
>
> Can anyone suggest a possible path forward?
>
> Many thanks,
>
> Michael
>
>
>
> Avahi configuration:
> ==========================
>
> # $Id: avahi-daemon.conf 1463 2007-05-08 22:50:58Z lennart $
> #
> # This file is part of avahi.
> #
> # avahi is free software; you can redistribute it and/or modify it
> # under the terms of the GNU Lesser General Public License as
> # published by the Free Software Foundation; either version 2 of the
> # License, or (at your option) any later version.
> #
> # avahi is distributed in the hope that it will be useful, but WITHOUT
> # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
> # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
> # License for more details.
> #
> # You should have received a copy of the GNU Lesser General Public
> # License along with avahi; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
> # USA.
> # See avahi-daemon.conf(5) for more information on this configuration
> # file!
> [server]
> #host-name=foo
> #domain-name=local
> #browse-domains=0pointer.de, zeroconf.org
> use-ipv4=yes
> use-ipv6=no
> #check-response-ttl=no
> #use-iff-running=no
> #enable-dbus=yes
> #disallow-other-stacks=no
> #allow-point-to-point=no
> [wide-area]
> enable-wide-area=yes
> [publish]
> #disable-publishing=no
> #disable-user-service-publishing=no
> #add-service-cookie=no
> #publish-addresses=yes
> #publish-hinfo=yes
> #publish-workstation=yes
> #publish-domain=yes
> #publish-dns-servers=192.168.50.1, 192.168.50.2
> #publish-resolv-conf-dns-servers=yes
> #publish-aaaa-on-ipv4=yes
> #publish-a-on-ipv6=no
> [reflector]
> #enable-reflector=no
> #reflect-ipv=no
> [rlimits]
> #rlimit-as=
> rlimit-core=0
> rlimit-data=4194304
> rlimit-fsize=0
> rlimit-nofile=30
> rlimit-stack=4194304
> rlimit-nproc=3
>
> ========================
>
>
> Service XML:
> ========================
>
> <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
> <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
> <service-group>
> <name replace-wildcards="yes">%h</name>
> <service>
> <type>_http._tcp</type>
> <port>80</port>
> </service>
> </service-group>
>
> =========================
>
>
> --
> Michael Tyson | Developer | smartpath.com.au
>
> m: (+61) 0407 754 124
> e: mtyson at smartpath.com.au
> aim: mikerusselltyson
>
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
--
Michael Tyson | Developer | smartpath.com.au
m: (+61) 0407 754 124
e: mtyson at smartpath.com.au
aim: mikerusselltyson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/avahi/attachments/20080206/6a5bcc98/attachment.htm
More information about the avahi
mailing list