EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: Eric Norum <[email protected]>
Date: Mon, 11 Mar 2013 10:44:48 -0600
Hi,

On 2013-03-11 Eric Norum wrote:
> Right -- we'd have to copy the existing posix/osdSock.c from posix/ to
> RTEMS/ before making the getaddrinfo change to posix/osdSock.c.

This is starting to sound more like a 3.15-level change now, since it's going 
to affect multiple architectures.  I confirmed Michael's observation that 
getaddrinfo() is not provided in RTEMS 4.9.2.

On 2013-03-11 Mark Rivers wrote:
> I checked an getaddrinfo also appears to be present on Windows.  If this
>  adds useful functionality then should it also be changed in the Windows
>  OSI code?

I suspect that unless you're suffering the same issues that Matt reported this 
wouldn't really make any difference.  I don't think it really adds any 
functionality other than apparently checking local host names before or as 
well as the DNS, although on Linux the older APIs are now documented as being 
obsolete.

The osi/os/WIN32/osdSock.c file could easily be changed to use getaddrinfo() 
instead of gethostbyaddr() and getnameinfo() instead of gethostbyname().  Do 
you know when Microsoft introduced the newer routines?  Would making this 
change prevent EPICS from running on some older versions of Windows?

- Andrew
-- 
There is no such thing as a free lunch.  When invited for lunch,
it is best to check if you are there to eat, or to be eaten.
-- Clive Robinson

Replies:
Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Eric Norum
RE: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Mark Rivers
References:
gethostbyname and getaddrinfo - multiple DNS entries for a hostname matthew.pearson
Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Michael Davidsaver
Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Eric Norum

Navigate by Date:
Prev: Execute OPI file Lucas Jose Monteiro Carvalho
Next: areaDetector R1-9-1 released Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Eric Norum
Next: Re: gethostbyname and getaddrinfo - multiple DNS entries for a hostname Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·