]> granicus.if.org Git - libevent/commitdiff
r16473@catbus: nickm | 2007-11-06 15:55:35 -0500
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Nov 2007 20:57:37 +0000 (20:57 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Nov 2007 20:57:37 +0000 (20:57 +0000)
 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
evdns.c

index ea7c712ef8050713945168f1ff64daa8061e6e93..42b171914f01224cf742a578baf14758fb47e7c9 100644 (file)
--- 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 560786249fb75ada955b6090e8e861ddc64e5627..b324da16d9d6c8600eecfd173381b689bc64acc2 100644 (file)
--- 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