diff options
author | 2020-04-25 16:23:59 +0000 | |
---|---|---|
committer | 2020-04-25 16:23:59 +0000 | |
commit | 5659aa878a66e4755bca3c411e0e776e238ce2af (patch) | |
tree | 5d373f25c6142dad18eeb7da7c4b332e099408d4 /lib/libc | |
parent | Enable dsxrtc(4) and pcfrtc(4). (diff) | |
download | wireguard-openbsd-5659aa878a66e4755bca3c411e0e776e238ce2af.tar.xz wireguard-openbsd-5659aa878a66e4755bca3c411e0e776e238ce2af.zip |
Discourage use of RES_USE_INET6
Suggested by eric@, input from deraadt@, ok deraadt@ eric@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/res_init.3 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/net/res_init.3 b/lib/libc/net/res_init.3 index f9f13cf4f90..6b15b675b1b 100644 --- a/lib/libc/net/res_init.3 +++ b/lib/libc/net/res_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: res_init.3,v 1.2 2020/04/25 14:30:05 jca Exp $ +.\" $OpenBSD: res_init.3,v 1.3 2020/04/25 16:23:59 jca Exp $ .\" .\" Copyright (c) 1985, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -183,6 +183,10 @@ feature. With this option .Xr gethostbyname 3 will return IPv6 addresses if available. +This option is deprecated, software should use the +.Xr getaddrinfo 3 +interface instead of modifying the behavior of +.Xr gethostbyname 3 . On some operating systems this option also causes IPv4 addresses to be returned as IPv4-mapped IPv6 addresses. For example, 10.1.1.1 will be returned as ::ffff:10.1.1.1. |