Rick Jones wrote:
> Netperf has been passing IPs to getaddrinfo() without setting any
> special flags.

Chuck Swiger writes:
> Maybe there are broken implementations of getaddrinfo() floating
> around?

On Linux you must set a flag to tell it not to consider the possibility
that what you are passing it is not a numeric address:

       node specifies either a numerical network address (for IPv4,
       numbers-and-dots notation as supported by inet_aton(3); for IPv6,
       hexadecimal string format as supported by inet_pton(3)), or a
       network hostname, whose network addresses are looked up and
       resolved.  If hints.ai_flags contains the AI_NUMERICHOST flag
       then node must be a numerical network address.  The
       AI_NUMERICHOST flag suppresses any potentially lengthy network
       host address lookups.

       CONFORMING TO
       POSIX.1-2001.  The getaddrinfo() function is documented in RFC 2553.

-- 
John Hasler 
jhas...@newsguy.com
Dancing Horse Hill
Elmwood, WI USA

_______________________________________________
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions
  • Re: [ntp:quest... Steve Kostecke
    • Re: [ntp:... Atul Gupta
      • Re: [... Danny Mayer
        • R... Rick Jones
          • ... Majdi S. Abbas
        • R... Danny Mayer
          • ... Rick Jones
            • ... Danny Mayer
              • ... Rick Jones
              • ... Chuck Swiger
              • ... John Hasler
              • ... Rick Jones
              • ... Danny Mayer
              • ... Rick Jones
              • ... John Hasler
              • ... Danny Mayer
              • ... E-Mail Sent to this address will be added to the BlackLists
              • ... E-Mail Sent to this address will be added to the BlackLists
              • ... Rick Jones
              • ... Danny Mayer
              • ... Danny Mayer

Reply via email to