summaryrefslogtreecommitdiff
path: root/src/feature/relay/dns.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-18 12:00:24 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-18 12:00:24 -0500
commitdcbc45e6b2f80e8bd3664972d6317331d6b3bc85 (patch)
treee2276809612617eaaf92fad248ec0b62540e07d9 /src/feature/relay/dns.h
parent17724a7cdeb9b98539831f1164a82784f1fb050f (diff)
downloadtor-dcbc45e6b2f80e8bd3664972d6317331d6b3bc85.tar.gz
tor-dcbc45e6b2f80e8bd3664972d6317331d6b3bc85.zip
Replace identifiers related to clipping DNS ttls.
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ MIN_DNS_TTL_AT_EXIT MIN_DNS_TTL \ MAX_DNS_TTL_AT_EXIT MAX_DNS_TTL \ dns_clip_ttl clip_dns_ttl
Diffstat (limited to 'src/feature/relay/dns.h')
-rw-r--r--src/feature/relay/dns.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/feature/relay/dns.h b/src/feature/relay/dns.h
index 2b1da8d126..e445b23336 100644
--- a/src/feature/relay/dns.h
+++ b/src/feature/relay/dns.h
@@ -13,9 +13,9 @@
#define TOR_DNS_H
/** Lowest value for DNS ttl that a server will give. */
-#define MIN_DNS_TTL_AT_EXIT (5*60)
+#define MIN_DNS_TTL (5*60)
/** Highest value for DNS ttl that a server will give. */
-#define MAX_DNS_TTL_AT_EXIT (60*60)
+#define MAX_DNS_TTL (60*60)
/** How long do we keep DNS cache entries before purging them (regardless of
* their TTL)? */
@@ -27,7 +27,7 @@
int dns_init(void);
int has_dns_init_failed(void);
void dns_free_all(void);
-uint32_t dns_clip_ttl(uint32_t ttl);
+uint32_t clip_dns_ttl(uint32_t ttl);
int dns_reset(void);
void connection_dns_remove(edge_connection_t *conn);
void assert_connection_edge_not_dns_pending(edge_connection_t *conn);