[avahi] Address family not supported by protocol

Sebastien Estienne sebastien.estienne at gmail.com
Sat Jan 21 04:29:53 PST 2006


On 1/21/06, Andrew Burton <adb at iinet.net.au> wrote:
>
> I'm running a laptop with wifi through a Linksys card using the lsbcmnds
> driver under ndiswrapper, and a desktop using an ethernet card. Both
> connect to a Linksys router running DHCP.
>
> Both get an IP from the router on the same network (192.168.1.64
> and .66). Both are running kernels 2.6.15.
>
> Both the laptop and desktop can see themselves when running
> avahi-discover. When I restart the avahi-daemon on each computer, the
> desktop can see the laptop, and can read the information from it, in
> avahi-discover, before all requests time out after about 10-15 seconds.
> The laptop, however, can never see the desktop.
>
> Both haven't had changes to the avahi-daemon.conf file, so are running
> the defaults.
>
> The laptop has a message in /var/log/daemon.log:
>
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: Found user 'avahi' (UID 109)
> and group 'avahi' (GID 109).
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: Successfully dropped root
> privileges.
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: avahi-daemon 0.6.4 starting
> up.
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: Loading service
> file /etc/avahi/services/ssh.service.
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: socket() failed: Address
> family not supported by protocol
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: New relevant interface
> wlan0.IPv4 for mDNS.
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: Joining mDNS multicast group
> on interface wlan0.IPv4 with address 192.168.1.66.
> Jan 21 12:38:07 goodlet avahi-daemon[4680]: Network interface
> enumeration completed.
>  (where goodlet is the hostname of the laptop).
>
> The key bit I think is the socket() failed call. Any ideas on what this
> may refer to? I tried grepping through the source, but couldn't find
> this particular message.
Simply because this message is not in avahi's source code.
I think that a socket() call fails in avahi-core/socket.c, and the
error message is displayed by strerror(errno).

It may be possible that it failed because IPv6 is not supported.

We should add the parameters in the avahi_log_warn to know which
socket() call fails, there is 2 different kind:
socket(AF_INET6, SOCK_DGRAM, 0)
socket(AF_INET, SOCK_DGRAM, 0)

this for unicast and multicast dns.

>
> Thanks
>
> ADB
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>


--
Sebastien Estienne


More information about the avahi mailing list