From: ian Date: Sun, 21 May 2000 18:34:18 +0000 (+0000) Subject: + * adnsresfilter doesn't resolve textual prefixes of addresses (eg, X-Git-Tag: rel-adns-0-9~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=51cc4d904a18367cc69960bf20f0398725ece443 + * adnsresfilter doesn't resolve textual prefixes of addresses (eg, @@ -5,12 +5,15 @@ `qu->interim_allocd>=0' on some platforms eg 64 bit). + * adnsresfilter doesn't resolve textual prefixes of addresses (eg, + 10.0.0.1 out of 10.0.0.123) if input happens to block at that point. Minor improvements: + * adnsresfilter default timeout changed to 1000ms. --- diff --git a/changelog b/changelog index e45c357..e09e74a 100644 --- a/changelog +++ b/changelog @@ -5,12 +5,15 @@ adns (0.9) unstable; urgency=low `TCP connection failed: poll/select: exceptional condition detected'. * Call MEM_ROUND in __transfer_interim (avoids assert fail `qu->interim_allocd>=0' on some platforms eg 64 bit). + * adnsresfilter doesn't resolve textual prefixes of addresses (eg, + 10.0.0.1 out of 10.0.0.123) if input happens to block at that point. Portability/compilation fixes: * Move `extern "C" {' to after #include <...>'s. Minor improvements: * Do not print warning if sendto() gives EAGAIN. + * adnsresfilter default timeout changed to 1000ms. -- diff --git a/client/adnsresfilter.c b/client/adnsresfilter.c index e641d6f..8175049 100644 --- a/client/adnsresfilter.c +++ b/client/adnsresfilter.c @@ -50,7 +50,7 @@ struct outqueuenode { }; static int bracket, forever, address; -static unsigned long timeout=100; +static unsigned long timeout= 1000; static adns_rrtype rrt= adns_r_ptr; static int outblocked, inputeof; @@ -369,7 +369,6 @@ static void readstdin(void) { if (!bracket && !isalnum(c)) startaddr(); } } - if (cbyte==3 && inbyte>0 && !bracket) procaddr(); } static void startup(void) {