aboutsummaryrefslogtreecommitdiff
path: root/resolv/res_init.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-01-15 09:46:50 +0000
committerUlrich Drepper <drepper@redhat.com>2004-01-15 09:46:50 +0000
commitee778b56b7de06512c2539184f6a256b4efff848 (patch)
tree3f0a7f5e9f5d85d72391f3bf7950c799c21e674a /resolv/res_init.c
parent392a6b52656c1bb40305375b0ea9020455044f9d (diff)
downloadglibc-ee778b56b7de06512c2539184f6a256b4efff848.zip
glibc-ee778b56b7de06512c2539184f6a256b4efff848.tar.gz
glibc-ee778b56b7de06512c2539184f6a256b4efff848.tar.bz2
Update.
2004-01-15 Ulrich Drepper <drepper@redhat.com> * resolv/resolv.h: Add RES_USEBSTRING. * resolv/res_debug.c (p_option): Add handling for RES_USE_INET6, RES_ROTATE, RES_NOCHECKNAME, and RES_USEBSTRING. * resolv/res_init.c (res_setioptions): Recognize ip6-bytestring. * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Only perform bytestring IPv6 lookup with RES_USEBSTRING option is selected. Otherwise use the two nibble formats.
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r--resolv/res_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c
index e563dcf..cbab7ca 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -489,6 +489,9 @@ res_setoptions(res_state statp, const char *options, const char *source) {
#endif
} else if (!strncmp(cp, "inet6", sizeof("inet6") - 1)) {
statp->options |= RES_USE_INET6;
+ } else if (!strncmp(cp, "ip6-bytestring",
+ sizeof("ip6-bytestring") - 1)) {
+ statp->options |= RES_USEBSTRING;
} else if (!strncmp(cp, "rotate", sizeof("rotate") - 1)) {
statp->options |= RES_ROTATE;
} else if (!strncmp(cp, "no-check-names",