]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
resolv: Remove RES_NOIP6DOTINT and its implementation
authorFlorian Weimer <fweimer@redhat.com>
Fri, 7 Oct 2016 11:55:47 +0000 (13:55 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 7 Oct 2016 15:41:59 +0000 (17:41 +0200)
ChangeLog
NEWS
resolv/gethnamaddr.c
resolv/nss_dns/dns-host.c
resolv/res_debug.c
resolv/res_init.c
resolv/resolv.h

index 942f9e02ecb8ef71c4a441af0ae197bae523f378..361277ebb19372e627fd7eae9bfa40fcd21d2556 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2016-10-07  Florian Weimer  <fweimer@redhat.com>
+
+       resolv: Remove RES_NOIP6DOTINT and its implementation.
+       * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
+       (RES_NOIP6DOTINT): Remove.
+       * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
+       handling.
+       * resolv/res_debug.c (p_option): Likewise.
+       * resolv/res_init.c (res_setoptions): Likewise.
+       * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
+
 2016-10-07  Florian Weimer  <fweimer@redhat.com>
 
        resolv: Deprecate unimplemented flags.
diff --git a/NEWS b/NEWS
index be66f2308cb01685865847e07e956a8f572651a7..49b9180c20d9e42476a5dd7b121fb4454267bce3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -59,6 +59,11 @@ Version 2.25
   for the Linux quota interface which predates kernel version 2.4.22 has
   been removed.
 
+* The “ip6-dotint” and “no-ip6-dotint” resolver options, and the
+  corresponding RES_NOIP6DOTINT flag from <resolv.h> have been removed.
+  “no-ip6-dotint” had already been the default, and support for the
+  “ip6-dotint” option was removed from the Internet in 2006.
+
 * The flags RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME, RES_KEEPTSIG defined
   in the <resolv.h> header file have been deprecated.  They were already
   unimplemented.
index 9ad2c3010a87f915ff0676753b21826ea9161fb6..1b81ca840eab7a9506ef8495ef895e1fea20adec 100644 (file)
@@ -642,12 +642,6 @@ gethostbyaddr (const void *addr, socklen_t len, int af)
 
        n = __libc_res_nquery(&_res, qbuf, C_IN, T_PTR, buf.buf->buf, 1024,
                              &buf.ptr, NULL, NULL, NULL, NULL);
-       if (n < 0 && af == AF_INET6 && (_res.options & RES_NOIP6DOTINT) == 0) {
-               strcpy(qp, "ip6.int");
-               n = __libc_res_nquery(&_res, qbuf, C_IN, T_PTR, buf.buf->buf,
-                                     buf.buf != orig_buf ? MAXPACKET : 1024,
-                                     &buf.ptr, NULL, NULL, NULL, NULL);
-       }
        if (n < 0) {
                if (buf.buf != orig_buf)
                        free (buf.buf);
index 5f9e35701b2ad915b96d3579f9c926df2d29edba..b6245adb5f110985e7eb74f8f798c64008c45e7c 100644 (file)
@@ -495,14 +495,6 @@ _nss_dns_gethostbyaddr2_r (const void *addr, socklen_t len, int af,
 
   n = __libc_res_nquery (&_res, qbuf, C_IN, T_PTR, host_buffer.buf->buf,
                         1024, &host_buffer.ptr, NULL, NULL, NULL, NULL);
-  if (n < 0 && af == AF_INET6 && (_res.options & RES_NOIP6DOTINT) == 0)
-    {
-      strcpy (qp, "ip6.int");
-      n = __libc_res_nquery (&_res, qbuf, C_IN, T_PTR, host_buffer.buf->buf,
-                            host_buffer.buf != orig_host_buffer
-                            ? MAXPACKET : 1024, &host_buffer.ptr,
-                            NULL, NULL, NULL, NULL);
-    }
   if (n < 0)
     {
       *h_errnop = h_errno;
index 825e8a65985c7eff7a6550cc1a588be2bda60fc3..04046464dce2d7f3840302a95f050e82f56b904e 100644 (file)
@@ -559,7 +559,6 @@ p_option(u_long option) {
        case RES_ROTATE:        return "rotate";
        case RES_BLAST:         return "blast";
        case RES_USEBSTRING:    return "ip6-bytestring";
-       case RES_NOIP6DOTINT:   return "no-ip6-dotint";
        case RES_USE_EDNS0:     return "edns0";
        case RES_SNGLKUP:       return "single-request";
        case RES_SNGLKUPREOP:   return "single-request-reopen";
index 1cfa4e6da96460b9eec91ef60f3f5d702c84ff84..12afb9ea0addb659a460feac198a58df6523a5d6 100644 (file)
@@ -439,8 +439,6 @@ res_setoptions(res_state statp, const char *options, const char *source) {
 #define STRnLEN(str) str, sizeof (str) - 1
                    { STRnLEN ("inet6"), 0, RES_USE_INET6 },
                    { STRnLEN ("ip6-bytestring"), 0, RES_USEBSTRING },
-                   { STRnLEN ("no-ip6-dotint"), 0, RES_NOIP6DOTINT },
-                   { STRnLEN ("ip6-dotint"), 1, ~RES_NOIP6DOTINT },
                    { STRnLEN ("rotate"), 0, RES_ROTATE },
                    { STRnLEN ("edns0"), 0, RES_USE_EDNS0 },
                    { STRnLEN ("single-request-reopen"), 0, RES_SNGLKUPREOP },
index 9146258bd4fd66de54281fb471fd27a8b5d3ba14..11a7fed6602024f6658f3463467e8a1bbeed8bf3 100644 (file)
@@ -199,8 +199,6 @@ struct res_sym {
 #define        RES_BLAST       0x00020000      /* blast all recursive servers */
 #define RES_USEBSTRING 0x00040000      /* IPv6 reverse lookup with byte
                                           strings */
-#define RES_NOIP6DOTINT        0x00080000      /* Do not use .ip6.int in IPv6
-                                          reverse lookup */
 #define RES_USE_EDNS0  0x00100000      /* Use EDNS0.  */
 #define RES_SNGLKUP    0x00200000      /* one outstanding request at a time */
 #define RES_SNGLKUPREOP        0x00400000      /* -"-, but open new socket for each
@@ -209,7 +207,7 @@ struct res_sym {
 #define RES_NOTLDQUERY 0x01000000      /* Do not look up unqualified name
                                           as a TLD.  */
 
-#define RES_DEFAULT    (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH|RES_NOIP6DOTINT)
+#define RES_DEFAULT    (RES_RECURSE|RES_DEFNAMES|RES_DNSRCH)
 
 /*
  * Resolver "pfcode" values.  Used by dig.