From 81802bf98c2608ec96c8fa299ecb761a26b0755c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 6 Nov 2007 20:57:37 +0000 Subject: [PATCH] r16473@catbus: nickm | 2007-11-06 15:55:35 -0500 Increment MAX_ADDRS in evdns so as to be quite large. This is not as good as a general solution, but it may be good enough for practical use. svn:r479 --- ChangeLog | 1 + evdns.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ea7c712e..42b17191 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,3 +36,4 @@ Changes in current version: o Begin using libtool's library versioning support correctly. If we don't mess up, this will more or less guarantee binaries linked against old versions of libevent continue working when we make changes to libevent that do not break backward compatibility. o Fix evhttp.h compilation when TAILQ_ENTRY is not defined. o Small code cleanups in epoll_dispatch(). + o Increase the maximum number of addresses read from a packet in evdns to 32. \ No newline at end of file diff --git a/evdns.c b/evdns.c index 56078624..b324da16 100644 --- a/evdns.c +++ b/evdns.c @@ -136,7 +136,7 @@ typedef unsigned int uint; #define u16 uint16_t #define u8 uint8_t -#define MAX_ADDRS 4 /* maximum number of addresses from a single packet */ +#define MAX_ADDRS 32 /* maximum number of addresses from a single packet */ /* which we bother recording */ #define TYPE_A EVDNS_TYPE_A