Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2008 07:12:31 -0700
From:      "Mike Derouen" <mike.derouen@gmail.com>
To:        "Jeremy Chadwick" <koitsu@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Nexuiz-2.4.2 Server Browser and sockets "sendto" error
Message-ID:  <eafba6990807160712o6d704ca6tfc035e0d719a5189@mail.gmail.com>
In-Reply-To: <20080716105942.GA2663@eos.sc1.parodius.com>
References:  <eafba6990807142002k13a78b33gb18fbfd69c3e6cd5@mail.gmail.com> <eafba6990807151754l99ee5b5s70477dec2c4f48f8@mail.gmail.com> <20080716105942.GA2663@eos.sc1.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I have some output from truss that suggests the protocol type being used is

AF_UNSPEC.

Here's around where the first sendto error occurs:

open("/etc/hosts",O_RDONLY,0666)                 = 51 (0x33)
fstat(51,{mode=-rw-r--r-- ,inode=49352,size=1233,blksize=4096}) = 0 (0x0)
read(51,"# $FreeBSD: src/etc/hosts,v 1.16"...,4096) = 1233 (0x4d1)
read(51,0xbddf000,4096)                          = 0 (0x0)
close(51)                                        = 0 (0x0)
kqueue(0x0,0x0,0x0,0x0,0x0,0x0)                  = 51 (0x33)
socket(PF_INET,SOCK_DGRAM,0)                     = 52 (0x34)
connect(52,{ AF_INET 68.87.76.178:53 },16)       = 0 (0x0)
sendto(52,"J/\^A\0\0\^A\0\0\0\0\0\0\^Fupdat"...,38,0x0,NULL,0x0) = 38 (0x26)
clock_gettime(0,{1216173007.960787574})          = 0 (0x0)
kevent(51,{0x34,EVFILT_READ,EV_ADD|EV_ONESHOT,0,0x0,0x0},1,{0x34,EVFILT_READ,EV_ONESHOT,0,0x36,0x0},1,{5.000000000})
= 1 (0x1)
recvfrom(52,"J/\M^A\M^@\0\^A\0\^A\0\0\0\0\^Fu"...,65536,0x0,{ AF_INET
68.87.76.178:53 },0xbfbf4464) = 54 (0x36)
close(52)                                        = 0 (0x0)
close(51)                                        = 0 (0x0)
sendto(50,"\M^?\M^?\M^?\M^?getExtResponse c"...,44,0x0,{ sa_len = 2,
sa_family = 0, sa_data = { } },0x10) ERR#47 'Address family not supported by
protocol family'
fcntl(1,F_GETFL,)                                = 6 (0x6)
fcntl(1,F_SETFL,0x2)                             = 0 (0x0)
write(1,"LHNET_Write: sendto returned err"...,84) = 84 (0x54)
fcntl(1,F_SETFL,O_NONBLOCK|0x2)                  = 0 (0x0)
gettimeofday({1216173008.073126},0x0)            = 0 (0x0)
recvfrom(50,0x83c9ac0,65544,0x0,0xbfbfe830,0xbfbfa058) ERR#35 'Resource
temporarily unavailable'
gettimeofday({1216173008.073206},0x0)            = 0 (0x0)
gettimeofday({1216173008.073432},0x0)            = 0 (0x0)
gettimeofday({1216173008.073496},0x0)            = 0 (0x0)


on the "sendto(50...", The "sa_family" parameter is set to 0, which is
"unspecified".

socket 50 appears to be initialized much earlier in the truss output as
follows:

fcntl(1,F_SETFL,O_NONBLOCK|0x2)             = 0 (0x0)
socket(PF_INET,SOCK_DGRAM,17)             = 50 (0x32)
ioctl(50,FIONBIO,0xbfbfe3eb)             = 0 (0x0)
bind(50,{ sa_len = 2, sa_family = 0, sa_data = { } },16) = 0 (0x0)
getsockname(50,{ AF_INET 0.0.0.0:61469 },0xbfbfe3e4) = 0 (0x0)
setsockopt(0x32,0xffff,0x20,0xbfbfe3e0,0x4,0x1d138) = 0 (0x0)
fcntl(1,F_GETFL,)                 = 6 (0x6)
fcntl(1,F_SETFL,0x2)                 = 0 (0x0)
write(1,"Client opened a socket on addres"...,48) = 48 (0x30)
fcntl(1,F_SETFL,O_NONBLOCK|0x2)             = 0 (0x0)
gettimeofday({1216217183.338213},0x0)         = 0 (0x0)
gettimeofday({1216217183.338283},0x0)         = 0 (0x0)
recvfrom(50,0x83c9ac0,65544,0x0,0xbfbfe840,0xbfbfa068) ERR#35 'Resource
temporarily unavailable'
gettimeofday({1216217183.338408},0x0)         = 0 (0x0)


Does this info help any?

I've made a post to the nexuiz support site a while back, but have yet to
hear from them.


Thanks,
Mike




On Wed, Jul 16, 2008 at 3:59 AM, Jeremy Chadwick <koitsu@freebsd.org> wrote:

> On Tue, Jul 15, 2008 at 05:54:46PM -0700, Mike Derouen wrote:
> > I have recently installed the nexuiz-2.4.2 port and the single player
> game
> > works great.  The multiplayer mode, however, is not working properly.
>  When
> > i look at the server browser, there aren't any games listed, and I don't
> see
> > a way to add servers or refresh the list.  I also keep getting this
> sockets
> > error in the console:
> >
> > "LHNET_Write: sendto returned error: Address family not supported by
> > protocol family"
>
> Chances are whatever this software is, is attempting to use a custom
> socket type over TCP/IP which FreeBSD doesn't have support for.
>
> The error in question is EAFNOSUPPORT.  You can Google for it.
>
> > Does anybody have an idea of how to fix this?
>
> Contact the authors of the software?  :-)
>
> --
> | Jeremy Chadwick                                jdc at parodius.com |
> | Parodius Networking                       http://www.parodius.com/ |
> | UNIX Systems Administrator                  Mountain View, CA, USA |
> | Making life hard for others since 1977.              PGP: 4BD6C0CB |
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eafba6990807160712o6d704ca6tfc035e0d719a5189>