diff options
author | Oto Šťáva <oto.stava@nic.cz> | 2022-02-08 13:46:15 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2022-02-28 11:45:48 +0100 |
commit | 334ee4f48a65a68fdd1a1128f188cf23f7c8e82b (patch) | |
tree | ded0bd31931f410cf8488ebad0d144c893772d27 /lib/rplan.h | |
parent | Merge !1238: Support for PROXYv2 protocol (diff) | |
download | knot-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.h | 3 |
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. */ |