]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Merge getaddr_multi and getaddr6 into one function
authorArne Schwabe <arne@rfc2549.org>
Tue, 7 Aug 2012 10:03:57 +0000 (12:03 +0200)
committerDavid Sommerseth <davids@redhat.com>
Sun, 2 Sep 2012 19:18:43 +0000 (21:18 +0200)
commitf2d6f3bc06db4f9e0815fc25e35e393f794c193a
tree3ba404041bb2c68bc2d9225deff0ec8949bd2df2
parent3630a7a50099874d55bf8e212ad4a97d6e70966f
Merge getaddr_multi and getaddr6 into one function

the getaddr6 and getaddr_mutli functions are duplicates of each other.
Since we always require getaddrinfo to be present both function are merge
into one openvpn_getaddrinfo.

This functions also returns a standard struct addrinfo* so our resolve
interface is closer to the standard unix interface. The getaddr function
is a wrapper which provides backward compatibility for IPv4 addresses.
Ipv6 calls and calls to getaddr_multi are replaced with the new interface.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: 1344333837-22076-1-git-send-email-arne@rfc2549.org
URL: http://article.gmane.org/gmane.network.openvpn.devel/6959
Signed-off-by: David Sommerseth <davids@redhat.com>
[DS: Applied proper indenting on the changes wherever needed]
src/openvpn/route.c
src/openvpn/socket.c
src/openvpn/socket.h