public inbox for gwml@vger.gnuweeb.org
 help / color / mirror / Atom feed
From: Ahmad Gani <reyuki@gnuweeb.org>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Ahmad Gani <reyuki@gnuweeb.org>,
	Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH gwproxy v6 04/11] dnsparser: remove unused constant
Date: Thu, 28 Aug 2025 21:34:26 +0700	[thread overview]
Message-ID: <20250828143444.540247-5-reyuki@gnuweeb.org> (raw)
In-Reply-To: <20250828143444.540247-1-reyuki@gnuweeb.org>

The parser will likely only be targeted for a standard query,
specifically to resolve a domain name to IPv4 or IPv6.

Signed-off-by: Ahmad Gani <reyuki@gnuweeb.org>
---
 src/gwproxy/dnsparser.h | 24 +-----------------------
 1 file changed, 1 insertion(+), 23 deletions(-)

diff --git a/src/gwproxy/dnsparser.h b/src/gwproxy/dnsparser.h
index dc181aa0a2f1..b4c4b88b1c21 100644
--- a/src/gwproxy/dnsparser.h
+++ b/src/gwproxy/dnsparser.h
@@ -69,39 +69,17 @@
 #define UDP_MSG_LIMIT 512
 
 typedef enum {
-	OPCODE_QUERY		= 0,	// Standard query (QUERY)
-	OPCODE_IQUERY		= 1,	// Inverse query (IQUERY)
-	OPCODE_STATUS		= 2,	// Server status request (STATUS)
-	OPCODE_RESERVED_MIN	= 3,	// Reserved for future use (inclusive)
-	OPCODE_RESERVED_MAX	= 15	// Reserved for future use (inclusive)
+	OPCODE_QUERY	= 0,	// Standard query (QUERY)
 } gwdns_op;
 
 typedef enum {
 	TYPE_A		= 1,	// IPv4 host address
-	TYPE_NS		= 2,	// an authoritative name server
 	TYPE_CNAME	= 5,	// the canonical name for an alias
-	TYPE_SOA	= 6,	// marks the start of a zone of authority
-	TYPE_MB		= 7,	// a mailbox domain name (EXPERIMENTAL)
-	TYPE_MG		= 8,	// a mail group member (EXPERIMENTAL)
-	TYPE_MR		= 9,	// a mail rename domain name (EXPERIMENTAL)
-	TYPE_NULL	= 10,	// a null RR (EXPERIMENTAL)
-	TYPE_WKS	= 11,	// a well known service description
-	TYPE_PTR	= 12,	// a domain name pointer
-	TYPE_HINFO	= 13,	// host information
-	TYPE_MINFO	= 14,	// mailbox or mail list information
-	TYPE_MX		= 15,	// mail exchange
-	TYPE_TXT	= 16,	// text strings
 	TYPE_AAAA	= 28,	// IPv6 host address
-	QTYPE_AXFR	= 252,	// A request for a transfer of an entire zone
-	QTYPE_MAILB	= 253,	// A request for mailbox-related records (MB, MG or MR)
-	QTYPE_ALL	= 255	// A request for all records
 } gwdns_type;
 
 typedef enum {
 	CLASS_IN	= 1,	// Internet
-	CLASS_CH	= 3,	// CHAOS class
-	CLASS_HS	= 4,	// Hesiod
-	QCLASS_ANY	= 255	// ANY class (matches any class)
 } gwdns_class;
 
 typedef struct {
-- 
Ahmad Gani


  parent reply	other threads:[~2025-08-28 14:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-28 14:34 [PATCH gwproxy v6 00/11] Initial work on integration of DNS parser lib in gwproxy Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 01/11] gwproxy: Fix syntax error inside assertion Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 02/11] gwproxy: Fix socks5 failure on debug mode Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 03/11] dnsparser: Add dns parser code Ahmad Gani
2025-08-28 14:34 ` Ahmad Gani [this message]
2025-08-28 14:34 ` [PATCH gwproxy v6 05/11] dnsparser: Ignore CNAME if any Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 06/11] dns: Remove code block related to the usage of glibc's getaddrinfo_a function Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 07/11] dns: refactor dns.c to integrate the dns parser Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 08/11] dns: revert removed DNS code and disable raw DNS by default Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 09/11] test: revert DNS test-case Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 10/11] gwproxy: Add DNS server option Ahmad Gani
2025-08-28 14:34 ` [PATCH gwproxy v6 11/11] dns: Add fallback mechanism for raw DNS Ahmad Gani
2025-08-28 21:52 ` [PATCH gwproxy v6 00/11] Initial work on integration of DNS parser lib in gwproxy Ammar Faizi
2025-08-28 22:23 ` Ammar Faizi
2025-08-29  0:54   ` Ahmad Gani
2025-08-29  1:59     ` Ammar Faizi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250828143444.540247-5-reyuki@gnuweeb.org \
    --to=reyuki@gnuweeb.org \
    --cc=alviro.iskandar@gnuweeb.org \
    --cc=ammarfaizi2@gnuweeb.org \
    --cc=gwml@vger.gnuweeb.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox