Common subdirectories: c-ares-1.10.0.orig/.deps and c-ares-1.10.0/.deps diff -Eb -c c-ares-1.10.0.orig/ares.h c-ares-1.10.0/ares.h *** c-ares-1.10.0.orig/ares.h 2013-04-08 13:16:48.000000000 -0700 --- c-ares-1.10.0/ares.h 2013-07-25 15:04:53.000000000 -0700 *************** *** 460,477 **** --- 460,480 ---- unsigned short priority; unsigned short weight; unsigned short port; + int ttl; }; struct ares_mx_reply { struct ares_mx_reply *next; char *host; unsigned short priority; + int ttl; }; struct ares_txt_reply { struct ares_txt_reply *next; unsigned char *txt; size_t length; /* length excludes null termination */ + int ttl; }; struct ares_naptr_reply { *************** *** 482,487 **** --- 485,491 ---- char *replacement; unsigned short order; unsigned short preference; + int ttl; }; struct ares_soa_reply { *************** *** 492,497 **** --- 496,502 ---- unsigned int retry; unsigned int expire; unsigned int minttl; + int ttl; }; /* diff -Eb -c c-ares-1.10.0.orig/ares_parse_mx_reply.3 c-ares-1.10.0/ares_parse_mx_reply.3 *** c-ares-1.10.0.orig/ares_parse_mx_reply.3 2010-04-17 15:27:16.000000000 -0700 --- c-ares-1.10.0/ares_parse_mx_reply.3 2013-07-25 15:13:55.000000000 -0700 *************** *** 51,56 **** --- 51,57 ---- struct ares_mx_reply *next; char *host; unsigned short priority; + int ttl; }; .fi .in diff -Eb -c c-ares-1.10.0.orig/ares_parse_mx_reply.c c-ares-1.10.0/ares_parse_mx_reply.c *** c-ares-1.10.0.orig/ares_parse_mx_reply.c 2013-04-15 13:27:21.000000000 -0700 --- c-ares-1.10.0/ares_parse_mx_reply.c 2013-07-25 14:59:38.000000000 -0700 *************** *** 46,52 **** { unsigned int qdcount, ancount, i; const unsigned char *aptr, *vptr; ! int status, rr_type, rr_class, rr_len; long len; char *hostname = NULL, *rr_name = NULL; struct ares_mx_reply *mx_head = NULL; --- 46,52 ---- { unsigned int qdcount, ancount, i; const unsigned char *aptr, *vptr; ! int status, rr_type, rr_class, rr_len, rr_ttl; long len; char *hostname = NULL, *rr_name = NULL; struct ares_mx_reply *mx_head = NULL; *************** *** 99,104 **** --- 99,105 ---- rr_type = DNS_RR_TYPE (aptr); rr_class = DNS_RR_CLASS (aptr); rr_len = DNS_RR_LEN (aptr); + rr_ttl = DNS_RR_TTL (aptr); aptr += RRFIXEDSZ; if (aptr + rr_len > abuf + alen) { *************** *** 135,140 **** --- 136,142 ---- vptr = aptr; mx_curr->priority = DNS__16BIT(vptr); + mx_curr->ttl = rr_ttl; vptr += sizeof(unsigned short); status = ares_expand_name (vptr, abuf, alen, &mx_curr->host, &len); diff -Eb -c c-ares-1.10.0.orig/ares_parse_naptr_reply.c c-ares-1.10.0/ares_parse_naptr_reply.c *** c-ares-1.10.0.orig/ares_parse_naptr_reply.c 2013-04-15 13:27:21.000000000 -0700 --- c-ares-1.10.0/ares_parse_naptr_reply.c 2013-07-25 15:03:56.000000000 -0700 *************** *** 51,57 **** { unsigned int qdcount, ancount, i; const unsigned char *aptr, *vptr; ! int status, rr_type, rr_class, rr_len; long len; char *hostname = NULL, *rr_name = NULL; struct ares_naptr_reply *naptr_head = NULL; --- 51,57 ---- { unsigned int qdcount, ancount, i; const unsigned char *aptr, *vptr; ! int status, rr_type, rr_class, rr_len, rr_ttl; long len; char *hostname = NULL, *rr_name = NULL; struct ares_naptr_reply *naptr_head = NULL; *************** *** 104,109 **** --- 104,110 ---- rr_type = DNS_RR_TYPE (aptr); rr_class = DNS_RR_CLASS (aptr); rr_len = DNS_RR_LEN (aptr); + rr_ttl = DNS_RR_TTL (aptr); aptr += RRFIXEDSZ; if (aptr + rr_len > abuf + alen) { *************** *** 133,138 **** --- 134,140 ---- } naptr_last = naptr_curr; + naptr_curr->ttl = rr_ttl; vptr = aptr; naptr_curr->order = DNS__16BIT(vptr); vptr += sizeof(unsigned short); diff -Eb -c c-ares-1.10.0.orig/ares_parse_soa_reply.3 c-ares-1.10.0/ares_parse_soa_reply.3 *** c-ares-1.10.0.orig/ares_parse_soa_reply.3 2012-06-15 04:32:53.000000000 -0700 --- c-ares-1.10.0/ares_parse_soa_reply.3 2013-07-25 15:14:14.000000000 -0700 *************** *** 54,59 **** --- 54,60 ---- unsigned int retry; unsigned int expire; unsigned int minttl; + int ttl; }; .fi .in diff -Eb -c c-ares-1.10.0.orig/ares_parse_soa_reply.c c-ares-1.10.0/ares_parse_soa_reply.c *** c-ares-1.10.0.orig/ares_parse_soa_reply.c 2013-02-13 02:01:50.000000000 -0800 --- c-ares-1.10.0/ares_parse_soa_reply.c 2013-07-25 14:20:07.000000000 -0700 *************** *** 78,93 **** goto failed_stat; aptr += len; - /* skip rr_type, rr_class, rr_ttl, rr_rdlen */ - if (aptr + RRFIXEDSZ > abuf + alen) - goto failed; - aptr += RRFIXEDSZ; - /* allocate result struct */ soa = ares_malloc_data(ARES_DATATYPE_SOA_REPLY); if (!soa) return ARES_ENOMEM; /* nsname */ status = ares__expand_name_for_response(aptr, abuf, alen, &soa->nsname, &len); if (status != ARES_SUCCESS) --- 78,95 ---- goto failed_stat; aptr += len; /* allocate result struct */ soa = ares_malloc_data(ARES_DATATYPE_SOA_REPLY); if (!soa) return ARES_ENOMEM; + /* skip rr_type, rr_class, rr_ttl, rr_rdlen */ + if (aptr + RRFIXEDSZ > abuf + alen) + goto failed; + + soa->ttl = DNS_RR_TTL(aptr); + aptr += RRFIXEDSZ; + /* nsname */ status = ares__expand_name_for_response(aptr, abuf, alen, &soa->nsname, &len); if (status != ARES_SUCCESS) diff -Eb -c c-ares-1.10.0.orig/ares_parse_srv_reply.3 c-ares-1.10.0/ares_parse_srv_reply.3 *** c-ares-1.10.0.orig/ares_parse_srv_reply.3 2010-03-23 05:41:44.000000000 -0700 --- c-ares-1.10.0/ares_parse_srv_reply.3 2013-07-25 15:14:49.000000000 -0700 *************** *** 53,58 **** --- 53,59 ---- unsigned short priority; unsigned short port; char *host; + int ttl; }; .fi .in diff -Eb -c c-ares-1.10.0.orig/ares_parse_srv_reply.c c-ares-1.10.0/ares_parse_srv_reply.c *** c-ares-1.10.0.orig/ares_parse_srv_reply.c 2013-04-15 13:27:21.000000000 -0700 --- c-ares-1.10.0/ares_parse_srv_reply.c 2013-07-25 13:35:42.000000000 -0700 *************** *** 51,57 **** { unsigned int qdcount, ancount, i; const unsigned char *aptr, *vptr; ! int status, rr_type, rr_class, rr_len; long len; char *hostname = NULL, *rr_name = NULL; struct ares_srv_reply *srv_head = NULL; --- 51,57 ---- { unsigned int qdcount, ancount, i; const unsigned char *aptr, *vptr; ! int status, rr_type, rr_class, rr_len, rr_ttl; long len; char *hostname = NULL, *rr_name = NULL; struct ares_srv_reply *srv_head = NULL; *************** *** 104,109 **** --- 104,110 ---- rr_type = DNS_RR_TYPE (aptr); rr_class = DNS_RR_CLASS (aptr); rr_len = DNS_RR_LEN (aptr); + rr_ttl = DNS_RR_TTL(aptr); aptr += RRFIXEDSZ; if (aptr + rr_len > abuf + alen) { *************** *** 145,150 **** --- 146,152 ---- vptr += sizeof(unsigned short); srv_curr->port = DNS__16BIT(vptr); vptr += sizeof(unsigned short); + srv_curr->ttl = rr_ttl; status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len); if (status != ARES_SUCCESS) diff -Eb -c c-ares-1.10.0.orig/ares_parse_txt_reply.3 c-ares-1.10.0/ares_parse_txt_reply.3 *** c-ares-1.10.0.orig/ares_parse_txt_reply.3 2013-04-22 14:34:07.000000000 -0700 --- c-ares-1.10.0/ares_parse_txt_reply.3 2013-07-25 15:14:35.000000000 -0700 *************** *** 51,56 **** --- 51,57 ---- struct ares_txt_reply *next; unsigned int length; unsigned char *txt; + int ttl; }; .fi .in diff -Eb -c c-ares-1.10.0.orig/ares_parse_txt_reply.c c-ares-1.10.0/ares_parse_txt_reply.c *** c-ares-1.10.0.orig/ares_parse_txt_reply.c 2013-04-22 14:34:07.000000000 -0700 --- c-ares-1.10.0/ares_parse_txt_reply.c 2013-07-25 15:12:10.000000000 -0700 *************** *** 52,58 **** unsigned int qdcount, ancount, i; const unsigned char *aptr; const unsigned char *strptr; ! int status, rr_type, rr_class, rr_len; long len; char *hostname = NULL, *rr_name = NULL; struct ares_txt_reply *txt_head = NULL; --- 52,58 ---- unsigned int qdcount, ancount, i; const unsigned char *aptr; const unsigned char *strptr; ! int status, rr_type, rr_class, rr_len, rr_ttl; long len; char *hostname = NULL, *rr_name = NULL; struct ares_txt_reply *txt_head = NULL; *************** *** 105,110 **** --- 105,111 ---- rr_type = DNS_RR_TYPE (aptr); rr_class = DNS_RR_CLASS (aptr); rr_len = DNS_RR_LEN (aptr); + rr_ttl = DNS_RR_TTL (aptr); aptr += RRFIXEDSZ; if (aptr + rr_len > abuf + alen) { *************** *** 163,168 **** --- 164,170 ---- /* Make sure we NULL-terminate */ txt_curr->txt[substr_len] = 0; + txt_curr->ttl = rr_ttl; strptr += substr_len; } Only in c-ares-1.10.0/: autom4te.cache Common subdirectories: c-ares-1.10.0.orig/m4 and c-ares-1.10.0/m4 Common subdirectories: c-ares-1.10.0.orig/vc and c-ares-1.10.0/vc