Commit Diff
Diff:
8dd630d53c6a3dfd4e738d207b6b27940f14b240
d51887174651a3d85add12a1dcc55beb8641d93b
Commit:
d51887174651a3d85add12a1dcc55beb8641d93b
Tree:
39b62f48af650776ed0264924290d05361d22557
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Mon Jul 20 13:03:37 2020 UTC
Message:
make the definitions of HINFO(13), RP(17), and CAA(257) RR's these I want to add to delphinusdnsd 1.5.0
blob - e16a16c1572b3e3a5d1ce920c389395609284c5d
blob + cf016041a660acc14dc7cc9a4d6bbc30b9163acb
--- ddd-db.h
+++ ddd-db.h
@@ -27,7 +27,7 @@
*/
/*
- * $Id: ddd-db.h,v 1.48 2020/07/18 14:10:16 pjp Exp $
+ * $Id: ddd-db.h,v 1.49 2020/07/20 13:03:37 pjp Exp $
*/
#ifndef _DB_H
@@ -231,6 +231,28 @@ struct ptr {
struct txt {
char txt[1024]; /* TXT string */
int txtlen; /* len of TXT */
+} __attribute__((packed));
+
+struct hinfo {
+ char cpu[255];
+ int cpulen;
+ char os[255];
+ int oslen;
+} __attribute__((packed));
+
+struct rp {
+ char mbox[DNS_MAXNAME];
+ int mboxlen;
+ char txt[DNS_MAXNAME];
+ int txtlen;
+} __attribute__((packed));
+
+struct caa {
+ uint8_t flags;
+ char tag[DNS_MAXNAME];
+ int taglen;
+ char value[1024]; /* something reasonable, could be 65000! */
+ int valuelen;
} __attribute__((packed));
struct a {
blob - d58f3fdae5b71444314963e2c38aaa703f36fdf1
blob + 9f48b233f71fd7c77afb0bce960b43a103bb2167
--- ddd-dns.h
+++ ddd-dns.h
@@ -27,7 +27,7 @@
*/
/*
- * $Id: ddd-dns.h,v 1.25 2020/07/18 14:10:16 pjp Exp $
+ * $Id: ddd-dns.h,v 1.26 2020/07/20 13:03:37 pjp Exp $
*/
#ifndef _DNS_H
@@ -188,13 +188,15 @@ struct dns_question_hdr {
/* DNS types - RFC 1035 page 12 */
-#define DNS_TYPE_A 1
+#define DNS_TYPE_A 1 /* start of RFC 1035 */
#define DNS_TYPE_NS 2
#define DNS_TYPE_CNAME 5
#define DNS_TYPE_SOA 6
#define DNS_TYPE_PTR 12
+#define DNS_TYPE_HINFO 13
#define DNS_TYPE_MX 15
-#define DNS_TYPE_TXT 16
+#define DNS_TYPE_TXT 16 /* end of RFC 1035 */
+#define DNS_TYPE_RP 17 /* RFC 1183 */
#define DNS_TYPE_AAAA 28 /* quad A - RFC 3596 */
@@ -215,6 +217,7 @@ struct dns_question_hdr {
#define DNS_TYPE_IXFR 251 /* RFC 1995, page 2 */
#define DNS_TYPE_AXFR 252 /* RFC 5936, page 10 */
#define DNS_TYPE_ANY 255
+#define DNS_TYPE_CAA 257 /* RFC 8659 */
/* DNS types 0xff00 -> 0xfffe (private use) RFC 5395, page 8 */
repomaster@centroid.eu