On Fri, 2006-10-13 at 15:09 -0700, David Miller wrote:
> From: Rick Jones <[EMAIL PROTECTED]>
> Date: Fri, 13 Oct 2006 14:30:12 -0700
> 
> > I'm about to see about concocting an additional workaround in
> > netperf for this, but thought I'd ask if my assumption - that
> > getaddrinfo() returning -7 when given IPPROTO_SCTP - is indeed a bug
> > in getaddrinfo().  Or am I just woefully behind in patches or
> > completely offbase on what is correct behaviour for getaddrinfo and
> > hints?
> 
> Since getaddrinfo() is implemented in GLIBC, this is not very
> much a kernel question unless you can point the failure at
> some kernel calls that the GLIBC getaddrinfo() implementation
> makes.

Yes. This needs to be supported in glibc.
I think adding an entry for IPPROTO_SCTP in the following
structure in glibc:getaddrinfo.c should fix it.

static const struct gaih_typeproto gaih_inet_typeproto[] =
{
  { 0, 0, "", 0 },
  { SOCK_STREAM, IPPROTO_TCP, "tcp", 0 },
  { SOCK_DGRAM, IPPROTO_UDP, "udp", 0 },
  { SOCK_RAW, 0, "raw", GAI_PROTO_PROTOANY|GAI_PROTO_NOSERVICE },
  { 0, 0, "", 0 }
};

I will try it out and and submit a patch to glibc.

Thanks
Sridhar

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to