From: Ahmad Gani <reyuki@gnuweeb.org>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Ahmad Gani <reyuki@gnuweeb.org>,
GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH gwproxy v1 1/2] dns: add a new restyp GWP_DNS_RESTYP_DEFAULT
Date: Mon, 28 Jul 2025 23:07:57 +0700 [thread overview]
Message-ID: <20250728160800.95383-2-reyuki@gnuweeb.org> (raw)
In-Reply-To: <20250728160800.95383-1-reyuki@gnuweeb.org>
The new restyp is required to handle unspecified restyp.
Signed-off-by: Ahmad Gani <reyuki@gnuweeb.org>
---
src/gwproxy/dns.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gwproxy/dns.h b/src/gwproxy/dns.h
index c9dea0a10d62..7d62d3f9b89e 100644
--- a/src/gwproxy/dns.h
+++ b/src/gwproxy/dns.h
@@ -31,6 +31,7 @@ struct gwp_dns_entry {
};
enum {
+ GWP_DNS_RESTYP_DEFAULT = 0,
GWP_DNS_RESTYP_IPV4_ONLY = 1,
GWP_DNS_RESTYP_IPV6_ONLY = 2,
GWP_DNS_RESTYP_PREFER_IPV4 = 3,
--
Ahmad Gani
next prev parent reply other threads:[~2025-07-28 16:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-28 16:07 [PATCH gwproxy v1 0/2] Fix missing validation of restyp in dns Ahmad Gani
2025-07-28 16:07 ` Ahmad Gani [this message]
2025-07-28 16:07 ` [PATCH gwproxy v1 2/2] dns: validate restyp on initialization Ahmad Gani
2025-07-28 16:14 ` [PATCH gwproxy v1 0/2] Fix missing validation of restyp in dns 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=20250728160800.95383-2-reyuki@gnuweeb.org \
--to=reyuki@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