]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
<arpa/nameser.h>: Remove RR type classification macros [BZ #20592]
authorFlorian Weimer <fweimer@redhat.com>
Wed, 21 Sep 2016 14:27:14 +0000 (16:27 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 21 Sep 2016 14:27:14 +0000 (16:27 +0200)
The macros are no longer up-to-date, and the classification is not
useful.  In this particular case, removal without prior deprecation
seems the right approach.

ChangeLog
NEWS
resolv/arpa/nameser.h

index 607ab50642176b47e5cca91d4410243b8ca4af9b..5ee24033ab9222304bb92031fd11ed2781885374 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-09-21  Florian Weimer  <fweimer@redhat.com>
+
+       [BZ #20592]
+       Remove RR type classification macros.
+       * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
+       (ns_t_udp_p, ns_t_xfr_p): Remove.
+
 2016-09-21  Florian Weimer  <fweimer@redhat.com>
 
        Remove misleading version information.
diff --git a/NEWS b/NEWS
index 5f7fc07c94a4a35c64006003e7b970ab483ac072..26b8045db59793bc3ba350a0a401d244f278dc44 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -50,6 +50,12 @@ Version 2.25
   only implemented minimal support for the previous version of DNSSEC, which
   is incompatible with the currently deployed version.
 
+* The resource record type classification macros ns_t_qt_p, ns_t_mrr_p,
+  ns_t_rr_p, ns_t_udp_p, ns_t_xfr_p have been removed from the
+  <arpa/nameser.h> header file because the distinction between RR types and
+  meta-RR types is not officially standardized, subject to revision, and
+  thus not suitable for encoding in a macro.
+
 Security related changes:
 
   On ARM EABI (32-bit), generating a backtrace for execution contexts which
index f11b9f0ec7f773d2f534e7426de5550873dfc909..a866ce897309ccda9c21df714b1064f65dbc1d24 100644 (file)
@@ -283,17 +283,6 @@ typedef enum __ns_type {
        ns_t_max = 65536
 } ns_type;
 
-/* Exclusively a QTYPE? (not also an RTYPE) */
-#define        ns_t_qt_p(t) (ns_t_xfr_p(t) || (t) == ns_t_any || \
-                     (t) == ns_t_mailb || (t) == ns_t_maila)
-/* Some kind of meta-RR? (not a QTYPE, but also not an RTYPE) */
-#define        ns_t_mrr_p(t) ((t) == ns_t_tsig || (t) == ns_t_opt)
-/* Exclusively an RTYPE? (not also a QTYPE or a meta-RR) */
-#define ns_t_rr_p(t) (!ns_t_qt_p(t) && !ns_t_mrr_p(t))
-#define ns_t_udp_p(t) ((t) != ns_t_axfr && (t) != ns_t_zxfr)
-#define ns_t_xfr_p(t) ((t) == ns_t_axfr || (t) == ns_t_ixfr || \
-                      (t) == ns_t_zxfr)
-
 /*%
  * Values for class field
  */