diff options
author | Tobias Brunner <tobias@strongswan.org> | 2009-08-14 15:47:04 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2009-08-14 16:14:32 +0200 |
commit | f1777dff59a24718265eeb5e37aaf765b34dfb53 (patch) | |
tree | 4b5920e36d59b4253f05792252ea71388f50d037 /src/libfreeswan/atoaddr.3 | |
parent | 26965b4ef3758e44b90f7574c8d204afe5923ab6 (diff) | |
download | strongswan-f1777dff59a24718265eeb5e37aaf765b34dfb53.tar.bz2 strongswan-f1777dff59a24718265eeb5e37aaf765b34dfb53.tar.xz |
Replacing gethostbyname, gethostbyname2 and their _r variants with getaddrinfo to increase portability.
Diffstat (limited to 'src/libfreeswan/atoaddr.3')
-rw-r--r-- | src/libfreeswan/atoaddr.3 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libfreeswan/atoaddr.3 b/src/libfreeswan/atoaddr.3 index fce8884e4..10da2691c 100644 --- a/src/libfreeswan/atoaddr.3 +++ b/src/libfreeswan/atoaddr.3 @@ -54,7 +54,7 @@ on a big-endian host and .B 4.3.2.1 on a little-endian host), a DNS name to be looked up via -.IR gethostbyname (3), +.IR getaddrinfo (3), or an old-style network name to be looked up via .IR getnetbyname (3). .PP @@ -91,10 +91,8 @@ DNS names may be complete (optionally terminated with a ``.'') or incomplete, and are looked up as specified by local system configuration (see .IR resolver (5)). -The -.I h_addr -value returned by -.IR gethostbyname (3) +The first value returned by +.IR getaddrinfo (3) is used, so with current DNS implementations, the result when the name corresponds to more than one address is @@ -102,7 +100,7 @@ difficult to predict. Name lookup resorts to .IR getnetbyname (3) only if -.IR gethostbyname (3) +.IR getaddrinfo (3) fails. .PP A subnet specification is of the form \fInetwork\fB/\fImask\fR. |