Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2009 19:06:41 +0000 (UTC)
From:      Hajimu UMEMOTO <ume@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/net getaddrinfo.c
Message-ID:  <200904121906.n3CJ6tpk004878@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ume         2009-04-12 19:06:41 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    lib/libc/net         getaddrinfo.c 
  Log:
  SVN rev 190972 on 2009-04-12 19:06:41Z by ume
  
  MFH r190382,190416,190525:
  - getaddrinfo(3) should accept numeric when ai_socktype is not
    specified in hint or hints is NULL.
  - Add support for SCTP to getaddrinfo(3).
    Now, getaddrinfo(3) returns two SOCK_STREAMs, IPPROTO_TCP and
    IPPROTO_SCTP.  It confuses some programs.  If getaddrinfo(3) returns
    IPPROTO_SCTP when SOCK_STREAM is specified by hints.ai_socktype, at
    least Apache doesn't work.  So, I made getaddrinfo(3) to return
    IPPROTO_SCTP with SOCK_STREAM only when IPPROTO_SCTP is specified
    explicitly by hints.ai_protocol.
  - Query DNS only once per an address family.
  
  Approved by:    re (kib)
  
  Revision  Changes    Path
  1.86.2.2  +197 -90   src/lib/libc/net/getaddrinfo.c



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