From 513c128854b8be3fa9e3df9c51f51f039b3ab746 Mon Sep 17 00:00:00 2001
From: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
Date: Thu, 14 Mar 2024 22:29:40 -0400
Subject: [PATCH] Typos

---
 share/dictionary/dns/dictionary.rfc1034     | 4 ++--
 src/protocols/dns/dns.h                     | 8 ++++----
 src/tests/unit/protocols/dns/bad-cookie.txt | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/share/dictionary/dns/dictionary.rfc1034 b/share/dictionary/dns/dictionary.rfc1034
index 0c4635522c2df..518d5bbb336b7 100644
--- a/share/dictionary/dns/dictionary.rfc1034
+++ b/share/dictionary/dns/dictionary.rfc1034
@@ -37,7 +37,7 @@ VALUE	Rcode				Name-error		3
 VALUE	Rcode				Not-implemented		4
 VALUE	Rcode				Refused			5
 VALUE	Rcode				YX-Domain		6
-VALUE	Rcode				YX-Resource-Recode-Set	7
+VALUE	Rcode				YX-Resource-Record-Set	7
 VALUE	Rcode				NX-Resource-Record-Set	8
 VALUE	Rcode				Not-Auth		9
 VALUE	Rcode				Not-Zone		10
@@ -45,7 +45,7 @@ VALUE	Rcode				DSO-Type-Not-Implemented 11
 VALUE	Rcode				Bad-Signature		16
 VALUE	Rcode				Bad-Key			17
 VALUE	Rcode				Bad-Time		18
-VALUE	Rcode				Rad-Mode		19
+VALUE	Rcode			        Bad-Mode		19
 VALUE	Rcode				Bad-name		20
 VALUE	Rcode				Bad-Algorithm		21
 VALUE	Rcode				Bad-Truncation		22
diff --git a/src/protocols/dns/dns.h b/src/protocols/dns/dns.h
index be44b42ef7a63..3033910e1bdf3 100644
--- a/src/protocols/dns/dns.h
+++ b/src/protocols/dns/dns.h
@@ -91,19 +91,19 @@ void		fr_dns_global_free(void);
 
 typedef enum {
 	FR_DNS_QUERY = 0,
-	FR_DNS_IQUERY = 1,
+	FR_DNS_INVERSE_QUERY = 1,
 	FR_DNS_STATUS = 2,
 	FR_DNS_NOTIFY = 4,
 	FR_DNS_UPDATE = 5,
-	FR_DNS_STATEFUL_OP = 6,
+	FR_DNS_STATEFUL_OPERATION = 6,
 	FR_DNS_CODE_MAX = 7,
 
 	FR_DNS_QUERY_RESPONSE = 16,
-	FR_DNS_IQUERY_RESPONSE = 17,
+	FR_DNS_INVERSE_QUERY_RESPONSE = 17,
 	FR_DNS_STATUS_RESPONSE = 18,
 	FR_DNS_NOTIFY_RESPONSE = 20,
 	FR_DNS_UPDATE_RESPONSE = 21,
-	FR_DNS_STATEFUL_OP_RESPONSE = 22,
+	FR_DNS_STATEFUL_OPERATION_RESPONSE = 22,
 
 	FR_DNS_DO_NOT_RESPOND = 256,
 } fr_dns_packet_code_t;
diff --git a/src/tests/unit/protocols/dns/bad-cookie.txt b/src/tests/unit/protocols/dns/bad-cookie.txt
index 3a296122c3f8b..b691477dc2042 100644
--- a/src/tests/unit/protocols/dns/bad-cookie.txt
+++ b/src/tests/unit/protocols/dns/bad-cookie.txt
@@ -98,7 +98,7 @@ match f6 ab 01 20 00 01 00 00 00 00 00 01 00 00 06 00 01 00 00 29 10 00 00 00 00
 #    |   |  optdata   = '6\xbf\x11\x1f\xef.\x01\t}\x8f\xfe\x06\\co\xfb\x14-vt\x94@zs'
 #
 decode-proto f6 ab 81 87 00 01 00 00 00 00 00 01  00 00 06 00 01  00 00 29 10 00 01 00 00 00  00 1c  00 0a 00 18 36 bf 11 1f ef 2e 01 09 7d 8f fe 06 5c 63 6f fb 14 2d 76 74 94 40 7a 73
-match Header = { ID = 63147, Query = Response, Opcode = Query, Authoritative = no, Truncated-Response = no, Recursion-Desired = yes, Recursion-Available = yes, Reserved = no, Authentic-Data = no, Checking-Disabled = no, Rcode = YX-Resource-Recode-Set, Question-Count = 1, Answer-Count = 0, Name-Server-Count = 0, Additional-Records-Count = 1 }, Question = { Name = ".", Type = 6, Class = Internet }, Additional-Record = { Name = ".", Type = Opt, Class = 4096, TTL = 16777216, Type.Opt = { Options = { Cookie = { Client = 0x36bf111fef2e0109, Server = 0x7d8ffe065c636ffb142d767494407a73 } } } }
+match Header = { ID = 63147, Query = Response, Opcode = Query, Authoritative = no, Truncated-Response = no, Recursion-Desired = yes, Recursion-Available = yes, Reserved = no, Authentic-Data = no, Checking-Disabled = no, Rcode = YX-Resource-Rcord-Set, Question-Count = 1, Answer-Count = 0, Name-Server-Count = 0, Additional-Records-Count = 1 }, Question = { Name = ".", Type = 6, Class = Internet }, Additional-Record = { Name = ".", Type = Opt, Class = 4096, TTL = 16777216, Type.Opt = { Options = { Cookie = { Client = 0x36bf111fef2e0109, Server = 0x7d8ffe065c636ffb142d767494407a73 } } } }
 encode-proto -
 match f6 ab 81 87 00 01 00 00 00 00 00 01 00 00 06 00 01 00 00 29 10 00 01 00 00 00 00 1c 00 0a 00 18 36 bf 11 1f ef 2e 01 09 7d 8f fe 06 5c 63 6f fb 14 2d 76 74 94 40 7a 73