diff options
author | Štěpán Balážik <stepan.balazik@nic.cz> | 2020-03-20 19:43:11 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2020-12-31 15:35:58 +0100 |
commit | 4565cc59668053cf72585d3b57bf405c3ee2da99 (patch) | |
tree | 0553cc48bf269953724c548f130f9e42c200dbae /lib/selection_forward.h | |
parent | tests: fix knot-resolver specific Deckard tests (diff) | |
download | knot-resolver-4565cc59668053cf72585d3b57bf405c3ee2da99.tar.xz knot-resolver-4565cc59668053cf72585d3b57bf405c3ee2da99.zip |
selection: server selection rewrite
Design discussion: #447
Code discussion: !1030
Diffstat (limited to 'lib/selection_forward.h')
-rw-r--r-- | lib/selection_forward.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/selection_forward.h b/lib/selection_forward.h new file mode 100644 index 00000000..e66274ff --- /dev/null +++ b/lib/selection_forward.h @@ -0,0 +1,17 @@ +/* Copyright (C) 2014-2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#pragma once + +#include "lib/selection.h" +#include "lib/resolve.h" + +void forward_local_state_alloc(struct knot_mm *mm, void **local_state, + struct kr_request *req); +void forward_choose_transport(struct kr_query *qry, + struct kr_transport **transport); +void forward_error(struct kr_query *qry, const struct kr_transport *transport, + enum kr_selection_error sel_error); +void forward_update_rtt(struct kr_query *qry, + const struct kr_transport *transport, unsigned rtt);
\ No newline at end of file |