From 0097c64fa8671c0c9e718df6052987f7d83dbf6a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 11 Jun 2007 16:59:41 +0000 Subject: 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 --- pjlib-util/include/pjlib-util/config.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'pjlib-util/include') 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 @@ -36,6 +36,22 @@ * DNS CONFIGURATION */ +/** + * 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 @@ -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 -- cgit v1.2.3