From patchwork Fri Sep 9 11:43:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 667980 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sVwMZ1G7Vz9ryT for ; Fri, 9 Sep 2016 21:43:53 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=i89OWKmP; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; q=dns; s=default; b= dPf1yq6nmF7XKV4C9ChXo3dvRkBxlik88n4vmhg1M1WJ3CSzCaldWZV0xDw8ycpm BN5Pg+LDEXuIdIspoFnxKbou/W5Vy0aZVyyz5K0hiD8ixkdL9AXdas4sXCEH54cc y3WucYgZ4zuAib0Vt66a8Bq5Ayy61hGEUsBdSB5NjOg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:to:subject:mime-version:content-type :content-transfer-encoding:message-id:from; s=default; bh=3q5uYQ 0zu5y1wkuSRTTiYtYqiKc=; b=i89OWKmPYvD/SarCXNd5ySRYWOlobktTUsX05G IbtNIelWDEuDH2LSS8xdoDzx1cVi3CahUbAVH1vIRMwPt9QIXvCzwoqJ8f7k9q6N E4QcJmUFj2PsX/D+dTpqTZl0EUOt87QQ4yDR6BoEJQOn83v9GkLSSgP4oKIkEVoy tY6xc= Received: (qmail 124512 invoked by alias); 9 Sep 2016 11:43:18 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 124417 invoked by uid 89); 9 Sep 2016 11:43:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=news X-HELO: mx1.redhat.com Date: Fri, 09 Sep 2016 13:43:14 +0200 To: libc-alpha@sourceware.org Subject: [PATCH] : Remove RR type classification macros [BZ #20592] User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20160909114314.0C1CD401404D5@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) 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. 2016-09-09 Florian Weimer [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. diff --git a/NEWS b/NEWS index 5566125..a98ca3c 100644 --- a/NEWS +++ b/NEWS @@ -46,6 +46,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 + 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 diff --git a/resolv/arpa/nameser.h b/resolv/arpa/nameser.h index f11b9f0..a866ce8 100644 --- a/resolv/arpa/nameser.h +++ b/resolv/arpa/nameser.h @@ -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 */