diff options
author | Daniel Mack <github@zonque.org> | 2015-08-03 16:32:40 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-03 16:32:40 +0200 |
commit | 4d2bee0620c04f935f7de0cc10d8d5e5d3e54b6a (patch) | |
tree | 25bad1f1b28175fac701af9bc7d2d1a1e14f0849 /src/resolve/resolved-dns-server.h | |
parent | b04d9f28718fe551ff8668e9c2eac2b2283e27ca (diff) | |
parent | 3b31df8301fd7dfb78bf9eaf9227d40c9bf12182 (diff) |
Merge pull request #841 from teg/resolved-exponential-resend
resolved: exponential backoff of packet resend
Diffstat (limited to 'src/resolve/resolved-dns-server.h')
-rw-r--r-- | src/resolve/resolved-dns-server.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-server.h b/src/resolve/resolved-dns-server.h index 06059e8829..10111fd6bd 100644 --- a/src/resolve/resolved-dns-server.h +++ b/src/resolve/resolved-dns-server.h @@ -46,6 +46,9 @@ struct DnsServer { int family; union in_addr_union address; + usec_t resend_timeout; + usec_t max_rtt; + bool marked:1; LIST_FIELDS(DnsServer, servers); @@ -62,6 +65,9 @@ int dns_server_new( DnsServer* dns_server_ref(DnsServer *s); DnsServer* dns_server_unref(DnsServer *s); +void dns_server_packet_received(DnsServer *s, usec_t rtt); +void dns_server_packet_lost(DnsServer *s, usec_t usec); + DEFINE_TRIVIAL_CLEANUP_FUNC(DnsServer*, dns_server_unref); extern const struct hash_ops dns_server_hash_ops; |