summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-transaction.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-26 14:53:17 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-27 01:41:39 +0100
commitf32f0e57ca117455fb24ca72238c4958cd800b28 (patch)
treeb181e0d09c970b4f5848099ce1aa01913d27bbce /src/resolve/resolved-dns-transaction.h
parentresolved: make sure we reset the DNSSEC result when we accept a response packet (diff)
downloadsystemd-f32f0e57ca117455fb24ca72238c4958cd800b28.tar.xz
systemd-f32f0e57ca117455fb24ca72238c4958cd800b28.zip
resolved: add dns_transaction_close_connection()
This new call unifies how we shut down all connection resources, such as UDP sockets, event sources, and TCP stream objects. This patch just adds the basic hook-up, this function will be used more in later commits.
Diffstat (limited to 'src/resolve/resolved-dns-transaction.h')
-rw-r--r--src/resolve/resolved-dns-transaction.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resolve/resolved-dns-transaction.h b/src/resolve/resolved-dns-transaction.h
index a351a5043b..faf3ce6fb9 100644
--- a/src/resolve/resolved-dns-transaction.h
+++ b/src/resolve/resolved-dns-transaction.h
@@ -100,18 +100,19 @@ struct DnsTransaction {
sd_event_source *timeout_event_source;
unsigned n_attempts;
+ /* UDP connection logic, if we need it */
int dns_udp_fd;
sd_event_source *dns_udp_event_source;
+ /* TCP connection logic, if we need it */
+ DnsStream *stream;
+
/* The active server */
DnsServer *server;
/* The features of the DNS server at time of transaction start */
DnsServerFeatureLevel current_features;
- /* TCP connection logic, if we need it */
- DnsStream *stream;
-
/* Query candidates this transaction is referenced by and that
* shall be notified about this specific transaction
* completing. */