This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add missing RR type numbers to ns_type


From a53a3428ee7c2c1dc3e3ff7e682e87f6694d9a55 Mon Sep 17 00:00:00 2001
From: Nathaniel McCallum <npmccallum@redhat.com>
Date: Tue, 16 Aug 2016 16:43:29 -0400
Subject: [PATCH] Add missing RR type numbers to ns_type

The ns_type enumeration was missing quite a few resource records. This
patch updates the enumeration to reflect the current state of the IANA
DNS Parameters registry.

    http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml
---
 ChangeLog             |  4 ++++
 resolv/arpa/nameser.h | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index ae29267..153e585 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-08-16  Nathaniel McCallum  <npmccallum@redhat.com>
+
+	* resolv/arpa/nameser.h (ns_type): Add missing RR types.
+
 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
 
 	* soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
diff --git a/resolv/arpa/nameser.h b/resolv/arpa/nameser.h
index 04f8844..371325e 100644
--- a/resolv/arpa/nameser.h
+++ b/resolv/arpa/nameser.h
@@ -289,6 +289,39 @@ typedef enum __ns_type {
 	ns_t_sink = 40,		/*%< Kitchen sink (experimentatl) */
 	ns_t_opt = 41,		/*%< EDNS0 option (meta-RR) */
 	ns_t_apl = 42,		/*%< Address prefix list (RFC3123) */
+	ns_t_ds = 43,		/*%< Delegation Signer */
+	ns_t_sshfp = 44,	/*%< SSH Key Fingerprint */
+	ns_t_ipseckey = 45,	/*%< IPSECKEY */
+	ns_t_rrsig = 46,	/*%< RRSIG */
+	ns_t_nsec = 47,		/*%< NSEC */
+	ns_t_dnskey = 48,	/*%< DNSKEY */
+	ns_t_dhcid = 49,	/*%< DHCID */
+	ns_t_nsec3 = 50,	/*%< NSEC3 */
+	ns_t_nsec3param = 51,	/*%< NSEC3PARAM */
+	ns_t_tlsa = 52,		/*%< TLSA */
+	ns_t_smimea = 53,	/*%< S/MIME cert association */
+				/*   Unassigned (54) */
+	ns_t_hip = 55,		/*%< Host Identity Protocol */
+	ns_t_ninfo = 56,	/*%< NINFO */
+	ns_t_rkey = 57,		/*%< RKEY */
+	ns_t_talink = 58,	/*%< Trust Anchor LINK */
+	ns_t_cds = 59,		/*%< Child DS */
+	ns_t_cdnskey = 60,	/*%< DNSKEY(s) reflected in DS */
+	ns_t_openpgpkey = 61,	/*%< OpenPGP Key */
+	ns_t_csync = 62,	/*%< Child-To-Parent Synchronization */
+				/*   Unassigned (63-98) */
+	ns_t_spf = 99,		/*%< SPF */
+	ns_t_uinfo = 100,	/*%< UINFO */
+	ns_t_uid = 101,		/*%< UID */
+	ns_t_gid = 102,		/*%< GID */
+	ns_t_unspec = 103,	/*%< UNSPEC */
+	ns_t_nid = 104,		/*%< NID */
+	ns_t_l32 = 105,		/*%< L32 */
+	ns_t_l64 = 106,		/*%< L64 */
+	ns_t_lp = 107,		/*%< LP */
+	ns_t_eui48 = 108,	/*%< EUI48 */
+	ns_t_eui64 = 109,	/*%< EUI64 */
+				/*   Unassigned (110-248) */
 	ns_t_tkey = 249,	/*%< Transaction key */
 	ns_t_tsig = 250,	/*%< Transaction signature. */
 	ns_t_ixfr = 251,	/*%< Incremental zone transfer. */
@@ -297,6 +330,15 @@ typedef enum __ns_type {
 	ns_t_maila = 254,	/*%< Transfer mail agent records. */
 	ns_t_any = 255,		/*%< Wildcard match. */
 	ns_t_zxfr = 256,	/*%< BIND-specific, nonstandard. */
+	ns_t_uri = 256,		/*%< URI record, standard. */
+	ns_t_caa = 257,		/*%< Certification Authority Restriction */
+	ns_t_avc = 258,		/*%< Application Visibility and Control */
+				/*   Unassigned (259-32767) */
+	ns_t_ta = 32768,	/*%< DNSSEC Trust Authorities */
+	ns_t_dlv = 32769,	/*%< DNSSEC Lookaside Validation */
+				/*   Unassigned (32770-65279) */
+				/*   Private Use (65280-65534) */
+				/*   Reserved (65535) */
 	ns_t_max = 65536
 } ns_type;
 
-- 
2.9.2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]