From: Remi Gacogne Date: Wed, 27 Sep 2023 23:23:27 +0000 (+0200) Subject: dnsdist: Move the definition of the DoQ thread to doq.hh X-Git-Tag: rec-5.0.0-alpha2~6^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e290c7c3cdcc4759e1169414d22a00c0abca893;p=thirdparty%2Fpdns.git dnsdist: Move the definition of the DoQ thread to doq.hh --- diff --git a/pdns/dnsdist.hh b/pdns/dnsdist.hh index 5d8cb3e1d3..dfaa3d1e58 100644 --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@ -1106,10 +1106,6 @@ struct LocalHolders void tcpAcceptorThread(std::vector states); -#ifdef HAVE_DNS_OVER_QUIC -void doqThread(ClientState* cs); -#endif /* HAVE_DNS_OVER_QUIC */ - void setLuaNoSideEffect(); // if nothing has been declared, set that there are no side effects void setLuaSideEffect(); // set to report a side effect, cancelling all _no_ side effect calls bool getLuaNoSideEffect(); // set if there were only explicit declarations of _no_ side effect diff --git a/pdns/dnsdistdist/doq.hh b/pdns/dnsdistdist/doq.hh index 9f147be4d2..80e4552ff8 100644 --- a/pdns/dnsdistdist/doq.hh +++ b/pdns/dnsdistdist/doq.hh @@ -100,6 +100,8 @@ struct CrossProtocolQuery; struct DNSQuestion; std::unique_ptr getDOQCrossProtocolQueryFromDQ(DNSQuestion& dq, bool isResponse); +void doqThread(ClientState* clientState); + #else struct DOQUnit