summaryrefslogtreecommitdiffstats
path: root/lib/rplan.h
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2022-02-08 13:46:15 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2022-02-28 11:45:48 +0100
commit334ee4f48a65a68fdd1a1128f188cf23f7c8e82b (patch)
treeded0bd31931f410cf8488ebad0d144c893772d27 /lib/rplan.h
parentMerge !1238: Support for PROXYv2 protocol (diff)
downloadknot-resolver-334ee4f48a65a68fdd1a1128f188cf23f7c8e82b.tar.xz
knot-resolver-334ee4f48a65a68fdd1a1128f188cf23f7c8e82b.zip
lib/resolve, modules: NO_ANSWER for not responding to clients
Diffstat (limited to 'lib/rplan.h')
-rw-r--r--lib/rplan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rplan.h b/lib/rplan.h
index a007e9c6..05594de8 100644
--- a/lib/rplan.h
+++ b/lib/rplan.h
@@ -18,6 +18,9 @@ struct kr_qflags {
bool NO_IPV6 : 1; /**< Disable IPv6 */
bool NO_IPV4 : 1; /**< Disable IPv4 */
bool TCP : 1; /**< Use TCP (or TLS) for this query. */
+ bool NO_ANSWER : 1; /**< Do not send any answer to the client.
+ * Request state should be set to `KR_STATE_FAIL`
+ * when this flag is set. */
bool RESOLVED : 1; /**< Query is resolved. Note that kr_query gets
* RESOLVED before following a CNAME chain; see .CNAME. */
bool AWAIT_IPV4 : 1; /**< Query is waiting for A address. */