cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: AF_UNSPEC and bind()

From: John F. Kelly <johnfkelly_at_earthlink.net>
Date: 09 Sep 2005 11:24:39 -0600

On Fri, 2005-09-09 at 10:36, Gisle Vanem wrote:
>
> In bind(). Your original tftp.c ignored the ret-val from bind(), so no
> wonder it worked for you :-)

In bind() on which platform? Again, it works --bind() and all---on
linux 2.4, 2.6, Solaris and XP.

14194 bind(3, {sa_family=AF_UNSPEC,
sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) = 0
14194 recvfrom(3, "\0\3\0\24 -f \"$(DESTDIR)$(bindir)/$$f"..., 516, 0,
{sa_family=AF_INET, sin_port=htons(33620),
sin_addr=inet_addr("135.9.39.88")}, [16]) = 516

>
> --gv
Received on 2005-09-09