diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-06-11 16:59:41 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-06-11 16:59:41 +0000 |
commit | 0097c64fa8671c0c9e718df6052987f7d83dbf6a (patch) | |
tree | c2a7cc7021758a04785e19a8211b9f31e620bcf7 /pjlib-util/include | |
parent | 814e00b97277f81bf8e8985d3310b3849e7ffdd3 (diff) |
Ticket #332: Enlarge default buffer size for caching DNS responses from 512 to 1000 bytes
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1360 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib-util/include')
-rw-r--r-- | pjlib-util/include/pjlib-util/config.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/pjlib-util/include/pjlib-util/config.h b/pjlib-util/include/pjlib-util/config.h index f33ad4a8..f01ade58 100644 --- a/pjlib-util/include/pjlib-util/config.h +++ b/pjlib-util/include/pjlib-util/config.h @@ -37,6 +37,22 @@ */ /** + * Maximum number of IP addresses in DNS A response. + */ +#ifndef PJ_DNS_MAX_IP_IN_A_REC +# define PJ_DNS_MAX_IP_IN_A_REC 8 +#endif + + +/** + * Maximum server address entries per one SRV record + */ +#ifndef PJ_DNS_SRV_MAX_ADDR +# define PJ_DNS_SRV_MAX_ADDR 8 +#endif + + +/** * This constant specifies the maximum names to keep in the temporary name * table when performing name compression scheme when duplicating DNS packet * (the #pj_dns_packet_dup() function). @@ -162,10 +178,10 @@ * size (PJ_DNS_RESOLVER_MAX_UDP_SIZE), since the DNS replicator function * (#pj_dns_packet_dup()) is also capable of performing name compressions. * - * Default: 512 (as a broad guidance, 400 is good for 4 SRV entries). + * Default: 1000 (as a broad guidance, 400 is good for 4 SRV entries). */ #ifndef PJ_DNS_RESOLVER_RES_BUF_SIZE -# define PJ_DNS_RESOLVER_RES_BUF_SIZE 512 +# define PJ_DNS_RESOLVER_RES_BUF_SIZE 1000 #endif |