On Wed, Feb 17, 2010 at 2:47 PM, David Sommerseth <openvpn.l...@topphemmelig.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all! > > When reviewing the patch "FQDN for routes should expand to all IPs" > today, I spotted that there is a function called getaddr() (renamed to > getaddr_all() in the mentioned patch). This function again makes use of > the old gethostbyname() function. This is not compatible with IPv6 > addresses. > > I would strongly recommend a move to getaddrinfo() instead. This is > based on an article [1] written by Ulrich Drepper, who is a glibc > maintainer. Any thoughts about that? It might even be more functions > needing to be ported as well. The mentioned article lists most > important functions which should be ported to newer APIs. > > Any comments on this issue would be appreciated. Another issue is of > course how this will influence other platforms than Linux.
Plenty adhere to this. In my ipv6 transport patch I only use getaddrinfo()/getnameinfo(), not only for the 'nixes, but also for the win32 build (x-compiled under Linux with mingw32xxx and tested under wine by me and by other fellow in the field [1] ). [1] http://github.com/jjo/openvpn-ipv6/downloads naked openvpn.exe built w/ipv6 transport support > > > kind regards, > > David Sommerseth > > > > [1] <http://people.redhat.com/drepper/userapi-ipv6.html> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkt783AACgkQDC186MBRfrrIxgCgnpCvbJMWzxutz4You8Qj8Qki > DFcAoJp5eGTHkee7Lz6AU+gKl5BOXiNv > =5ITZ > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel > -- --JuanJo ; echo j...@gomosglep.com | sed 's/[SPAM]//g'