36 Commits

Author SHA1 Message Date
Nick Mathewson
626cc5f982 r15168@catbus: nickm | 2007-09-19 11:24:30 -0400
Add a new function to evdns to override the default transaction ID generation code.


svn:r440
2007-09-19 15:27:53 +00:00
Nick Mathewson
82153e6e92 r15025@catbus: nickm | 2007-09-10 10:54:46 -0400
More DNS standard correctness changes: we preserve the CD flag,not the TC flag on responses.  When we get a nonstandard query, we should say "NOTIMPL" rather than ignoring it.


svn:r428
2007-09-10 14:56:00 +00:00
Nick Mathewson
8b39254926 r15024@catbus: nickm | 2007-09-10 10:49:15 -0400
Fix evdns_resolve_reverse_ipv6() so buffer is bug enough, and so the string ends with ".ip6.arpa" rather than "..ip6.arpa".


svn:r427
2007-09-10 14:55:55 +00:00
Nick Mathewson
c396c767e2 r15023@catbus: nickm | 2007-09-10 10:46:16 -0400
Add a missing begin-comment to the DNS_USE_OPENSSL_FOR_ID code in evdns.c.


svn:r426
2007-09-10 14:55:50 +00:00
Niels Provos
fc1211ed8a fix another memory leak
svn:r424
2007-09-10 01:37:57 +00:00
Niels Provos
7c66bf33e1 fix a memory leak in the dns server; found by valgrind
svn:r422
2007-09-10 01:30:11 +00:00
Nick Mathewson
3d2320b218 r14697@catbus: nickm | 2007-08-19 13:24:39 -0400
Remove redundant typedef of socklen_t in evdns.c: On windows, it is already defined by autoconf in config.h.


svn:r398
2007-08-19 17:25:52 +00:00
Niels Provos
7c6df310c9 remove c++ comments from Jan Kneschke
svn:r373
2007-07-30 23:53:10 +00:00
Niels Provos
f0ff792afa fixes from Joerg Sonnenberger:
http.c is a violation of the ctype(3) interface and an unused function.

test/regress_http.c are incorrect format strings.

test/regress.c uses raise(3) from signal.h.

evdns.c: evdns_error_strings is unused. The GET* macros can eat the
semicolon from the expression. pos is passed in as off_t, so just pass
that down. When assigning negativ values to unsigned variables, an
explicit cast is considered good style.


svn:r367
2007-06-30 18:58:34 +00:00
Niels Provos
f0d0559c3e allow DNS server to get access to the IP address for the requestor; from tor cvs via Nick Mathewson
svn:r362
2007-05-28 21:21:59 +00:00
Niels Provos
5d3b6a8387 fail quicker on bad replies; from tor cvs via Nick Mathewson
svn:r361
2007-05-28 21:20:57 +00:00
Niels Provos
d06ab8569e fix bug where req was freed and dereferenced afterwards; from tor cvs via Nick Mathewson
svn:r360
2007-05-28 21:19:18 +00:00
Niels Provos
28246587c0 treat SERVERFAILED as a timeout; from tor cvs via Nick Mathewson
svn:r359
2007-05-28 21:17:35 +00:00
Niels Provos
5be24333ae solaris may return short reads on resolve.conf; fix from tor cvs via Nick Mathewson
svn:r358
2007-05-28 21:09:00 +00:00
Niels Provos
d0111a29e9 evdns_shutdown fix from Adam Langley
svn:r357
2007-05-27 06:27:11 +00:00
Niels Provos
b5d2f9a255 rolling back r339: evconfig.h does not work
svn:r341
2007-03-01 06:25:18 +00:00
Niels Provos
127c260bb7 make evconfig.h available as installed header file; not
really ideal but good enough for me; from Nick Mathewson


svn:r339
2007-02-28 04:02:29 +00:00
Niels Provos
faf5f73a69 dns server support from Nick Mathewson; tiny tweaks
to the regression test from me to make it run on
systems where stack variables get initialized with
trash.


svn:r321
2007-02-08 16:39:15 +00:00
Niels Provos
121efe6530 small bug fixes to AAAA resolution and regression test; from Nick Mathewson!
we love regresson tests.



svn:r319
2007-01-27 08:38:51 +00:00
Niels Provos
78f2aa300c Allow setting of more DNS options via API; from Nick Mathewson!!!
svn:r318
2007-01-27 04:27:59 +00:00
Niels Provos
b776b2da72 dns name compression; from Nick Mathewson!!
svn:r317
2007-01-27 04:25:46 +00:00
Niels Provos
5baf8ecf69 minor fixes; spelling corrections; compatibility from Nick Mathewson!
svn:r316
2007-01-27 04:23:33 +00:00
Niels Provos
6318fca29e AAAA support for DNS; from Nick Mathewson.
unfortunately, no regression test



svn:r315
2007-01-27 04:22:36 +00:00
Niels Provos
b04043ae51 fix ddos in dns parsing due to infinite loop;
patch from Nick Mathewson; also received
notification from Jon Oberheide.


svn:r311
2007-01-21 17:28:55 +00:00
Niels Provos
0147ef3ac7 From Nick Mathewson:
This patch resets the successive timeout count to zero when:
  - A nameserver comes up
  - We receive a reply from a nameserver
  - We decide to not use the nameserver for a while because of its
    timeout count.

This patch also changes the timeout threshold from 3 to 5 seconds.


svn:r303
2006-12-12 04:02:07 +00:00
Niels Provos
7fe5edf50c use CLOCK_REALTIME when CLOCK_MONOTONIC is not available; from Phil Oleson
svn:r290
2006-12-02 21:25:21 +00:00
Niels Provos
3882669d3e transaction id fixes from richard nyberg; return correct
error code when file for resolv.conf cannot be found.


svn:r276
2006-11-23 05:27:15 +00:00
Niels Provos
868f10e7c9 mingw fixes from Nick
svn:r271
2006-11-22 01:21:10 +00:00
Niels Provos
ddf70659ad forgot ifdef guard around stdint.h
svn:r263
2006-11-18 03:52:27 +00:00
Niels Provos
cf47f86b74 put the evdns documentation into the header file. pathetic start of evdns manpage. a little bit
more testing and debug output for the DNS regression test.   add a BSD copyright to evdns.h with
appropriate explanations.


svn:r239
2006-10-09 00:48:42 +00:00
Niels Provos
fe1dfe0f40 sync evdns changes with tor - from Nick Mathewson
svn:r238
2006-10-05 22:59:44 +00:00
Niels Provos
e9c1e3f7f0 introduce evdns_init() which works on windows and unix.
svn:r231
2006-08-28 00:57:49 +00:00
Niels Provos
07c3fb5067 add a simple regression test for the DNS resolver; requires internet access.
do some KNF on evdns.c; add checks to prevent potential buffer overflows.
fix one memory leak.


svn:r230
2006-08-27 20:04:20 +00:00
Niels Provos
52bfcab894 rename eventdns to evdns to match libevent naming scheme
svn:r226
2006-08-24 06:10:50 +00:00
Niels Provos
d0d8f9b468 configure evdns and make it compile
svn:r225
2006-08-13 06:59:37 +00:00
Niels Provos
cca7249ed6 unmodified eventdns from Adam Langley via tor repository
svn:r224
2006-08-13 06:33:45 +00:00