diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-06-07 15:40:19 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-06-07 15:40:19 +0000 |
commit | cf3e59422ac20f20e7209e02a90c8c08085e2100 (patch) | |
tree | 2929776c33f475df1d32a5ca94cd69bec46058b6 /pjlib-util/include | |
parent | c01d1d66ccb71c1981be09674bf17829d8f2c9ea (diff) |
Ticket #325: More tunable settings in DNS resolver
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1346 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/include')
-rw-r--r-- | pjlib-util/include/pjlib-util/resolver.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pjlib-util/include/pjlib-util/resolver.h b/pjlib-util/include/pjlib-util/resolver.h index db869529..f7fd9ede 100644 --- a/pjlib-util/include/pjlib-util/resolver.h +++ b/pjlib-util/include/pjlib-util/resolver.h @@ -193,8 +193,17 @@ typedef struct pj_dns_settings unsigned qretr_count; /**< Query maximum retransmission count. */ unsigned cache_max_ttl; /**< Maximum TTL for cached responses. If the value is zero, caching is disabled. */ + unsigned good_ns_ttl; /**< See #PJ_DNS_RESOLVER_GOOD_NS_TTL */ + unsigned bad_ns_ttl; /**< See #PJ_DNS_RESOLVER_BAD_NS_TTL */ } pj_dns_settings; +/** + * Set default values to the DNS settings. + * + * @param s The DNS settings to be initialized. + */ +PJ_DECL(void) pj_dns_settings_default(pj_dns_settings *s); + /** * Create DNS resolver instance. After the resolver is created, application |