Commit Graph

694 Commits

Author SHA1 Message Date
wouter
2553be9532 Random nameserver selection.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@361 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-04 09:57:02 +00:00
wouter
fddfd9fce9 neater code layout.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@356 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-06-01 12:25:38 +00:00
wouter
598f4dd79b multiple subrequests at the same time.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@351 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-30 14:55:40 +00:00
wouter
1663aca700 init2 and double free fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@349 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-30 11:45:44 +00:00
wouter
7defbafe09 iterator work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@348 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-30 11:18:17 +00:00
wouter
ae8d3dbd12 Name change to make naming more uniform.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@345 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-29 12:31:02 +00:00
wouter
b715da9d6e message lookup and copy to region.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@343 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-29 10:32:11 +00:00
wouter
38bdf5271c tests need forwarding mode enabled.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@337 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-24 13:41:30 +00:00
wouter
6969cb7d56 preparatory work for iterator.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@336 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-24 13:24:44 +00:00
wouter
08d08d6d52 precise timers for roundtrip UDP timeouts.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@332 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-23 06:24:01 +00:00
wouter
4bc8319061 outbound queries via serviced outside_network queries.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@327 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-22 12:36:02 +00:00
wouter
c6b4fbb41c Serviced queries in outside network service get full EDNS, UDP retry and
TCP fallback attention.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@326 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-21 15:10:55 +00:00
wouter
f21445bfe2 Config options for infra cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@325 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-16 14:29:46 +00:00
wouter
69883b2a21 LRU touch of RRsets. Pretty complicated to do.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@324 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-16 12:48:48 +00:00
wouter
e641ee09fd Fixup tests.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@312 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-11 14:33:38 +00:00
wouter
401583e12b iterator module.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@311 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-11 14:16:42 +00:00
wouter
14ee408f22 Lint fixup. splint gets confused by getrlimit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@299 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-09 09:04:11 +00:00
wouter
e10db1a79d Checks ulimit open files.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@298 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-09 07:58:57 +00:00
wouter
5f3140deaa TCP fallback if forwarder sends TC bit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@295 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-09 07:00:10 +00:00
wouter
9799917b79 TCP outgoing services.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@294 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-08 13:25:21 +00:00
wouter
2b2981aeb6 No verbose for packet error. TC detect.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@293 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 15:01:27 +00:00
wouter
c48ece2072 lint fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@291 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 14:07:34 +00:00
wouter
adcc0a69bb EDNS errors.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@290 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 14:05:51 +00:00
wouter
397e4b4736 EDNS for the client.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@288 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-07 13:17:27 +00:00
wouter
ccae57de60 Update rrset.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@285 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 13:48:24 +00:00
wouter
e873c96fb5 temp region kept for use during query processing.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@282 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 12:35:01 +00:00
wouter
960c7df2fe working on trust of rrsets.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@281 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 10:10:52 +00:00
wouter
f3dbfd3a17 Alloc cache per thread gets used for deleted items.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@280 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 08:05:56 +00:00
wouter
dc30140970 config settings for rrset cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@279 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-04 07:34:10 +00:00
wouter
f504523316 Use packedrrset msgformat in service.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@277 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-03 15:34:03 +00:00
wouter
0572bf8856 some basic stats.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@271 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-05-01 12:13:29 +00:00
wouter
6f8a76a4fd ids and parsing rrs.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@241 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-16 15:21:50 +00:00
wouter
31abdae983 Casts for printf portable.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@219 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-03 10:20:59 +00:00
wouter
250f7af515 use constants for bitflags.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@214 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-03 09:29:09 +00:00
wouter
a3235abb8e Review of msgreply.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@212 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-02 13:58:02 +00:00
wouter
ea4a9f56b7 review of worker.c
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@211 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-04-02 10:16:02 +00:00
wouter
d436c627fd Review changes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@209 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-29 13:00:36 +00:00
wouter
af50a13f09 No useless byteswapping.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@208 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-29 10:00:10 +00:00
wouter
be1be4785d iov used.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@207 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-29 09:26:54 +00:00
wouter
27afbc52bb query list config option. tpkg test.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@203 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-28 13:43:50 +00:00
wouter
98a88786cb Multiple queries per thread.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@201 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-27 15:21:21 +00:00
wouter
b533d9681b config file settings for message cache.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@196 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-26 10:33:41 +00:00
wouter
cb98199c06 Checks returned queries from forwarder source.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@193 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-23 13:12:49 +00:00
wouter
1db1303312 Answers from the cache work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@192 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-23 12:41:38 +00:00
wouter
8eba5b12f8 reviewed yesterdays commit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@191 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-23 08:25:43 +00:00
wouter
21ece5f0f4 caching code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@190 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-22 16:26:14 +00:00
wouter
075fb149bc cleanup and unit test for alloc, also lock protection statements.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@168 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-09 13:37:57 +00:00
wouter
45222007d3 Simple thread problem detector code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@165 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-07 16:21:31 +00:00
wouter
0286fa3020 exit on signal, compatible with bad versions of libevent.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@161 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-02 09:48:31 +00:00
wouter
06714ab888 no warnings for thread code (porting), and nicer logging.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@159 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-02 09:03:14 +00:00
wouter
b5a05cc19c Small changes, nicer deallocation, nonblocking.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@158 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-03-01 15:50:57 +00:00
wouter
8f459044b9 Cast to make warning disappear.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@157 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-27 15:46:28 +00:00
wouter
341b653252 quieter.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@156 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-27 14:28:20 +00:00
wouter
7881840c72 Pushback when full makes all threads help out.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@154 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-27 11:25:44 +00:00
wouter
9845f06053 Signal solution
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@152 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-27 10:33:04 +00:00
wouter
99ee14a4e5 Nicer thread alternatives.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@150 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-27 09:28:53 +00:00
wouter
0aa62a84cc - don't open pipes that are unused (no pipes if 1 thread only).
- SIGTERM.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@149 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-26 16:18:35 +00:00
wouter
64ca15d5b5 Makes compile and test pass.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@148 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-26 16:11:32 +00:00
wouter
026db40657 Threading.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@146 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-26 14:49:11 +00:00
wouter
95ec45c352 Use random (thread safe version).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@145 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-26 09:42:05 +00:00
wouter
f6bc67e811 daemonize by default. -d to debugmode.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@141 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-23 15:23:33 +00:00
wouter
0d2d58d384 Fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@140 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-23 13:59:45 +00:00
wouter
1d26d432a2 config file: directory, logfile, pidfile. And they work too.
and log_warn.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@139 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-23 13:38:54 +00:00
wouter
e4d057d315 New config options.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@138 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-23 11:00:55 +00:00
wouter
3d6f070744 Ports are shared and you can kill -HUP to do a reload (of config file).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@137 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-23 10:04:50 +00:00
wouter
df0bfecb92 daemon code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@136 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-22 16:22:54 +00:00
wouter
6adf23c507 config file is used.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@135 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-22 13:36:29 +00:00
wouter
f73bab1e28 config file param.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@133 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-20 16:19:00 +00:00
wouter
c1332a4525 Config file.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@131 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-20 15:28:27 +00:00
wouter
1b77d91d19 verbosity works.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@109 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-15 15:50:22 +00:00
wouter
dbb94724a2 Nicer error.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@106 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-15 14:52:11 +00:00
wouter
67f45ada18 alloc of table makes it aligned.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@102 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-15 12:54:14 +00:00
wouter
1c4f344d15 Fix implicit decls.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@84 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-08 16:49:48 +00:00
wouter
8259caba4b cleanup dropped tcp.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@77 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-07 15:53:51 +00:00
wouter
cd6d736e47 Sets ID correctly. And udp forwarder test - test of networking code against
ldns-testns and dig.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@71 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-07 08:50:17 +00:00
wouter
b1ef3bea96 review of services, daemon and testcode.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@70 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-06 16:26:19 +00:00
wouter
54ddfbc6aa Review results. for util/
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@69 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-06 14:00:52 +00:00
wouter
e52b18cf77 signal handling.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@68 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-05 16:46:40 +00:00
wouter
07d06cab43 lint.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@60 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-02 14:19:56 +00:00
wouter
ca1b2ec0f0 Functioning DNS udp forwarding.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@59 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-02 13:44:00 +00:00
wouter
44f08bbf93 Commandline options to set forwarder, udp timeout.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@58 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-02 12:52:40 +00:00
wouter
a7aa93f585 Small fixed. Get fwdaddr to work on BSD. Memleak fix.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@52 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-02-02 09:57:53 +00:00
wouter
8ad21e5fd8 outside_network start.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@48 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-31 15:38:44 +00:00
wouter
c8dd23e3c6 Copied over rbtree. literally now, will adjust.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@46 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-31 11:57:22 +00:00
wouter
95519ce9d5 udp work.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@45 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-31 09:32:30 +00:00
wouter
c40a0d20c7 See changelog.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@43 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-30 16:36:46 +00:00
wouter
22db0c6300 Lint openssl fix.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@38 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-26 09:44:13 +00:00
wouter
6e8ccf8391 Fixed memleak.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@37 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-26 07:55:16 +00:00
wouter
54f08fdfc7 + - created log_assert, that throws assertions to the logfile.
+       - listen_dnsport service. Binds ports.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@35 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-25 16:08:52 +00:00
wouter
c74cb80ded doc fixup.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@34 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-25 12:50:40 +00:00
wouter
4e51dd9c6a See changelog.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@33 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-25 12:39:51 +00:00
wouter
11179c41da doxygen comment test and comments added.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@11 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-03 14:55:21 +00:00
wouter
96e1df8ada first test package.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@10 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-03 13:17:06 +00:00
wouter
c7cc611813 A main program is compiled.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@5 be551aaa-1e26-0410-a405-d3ace91eadb9
2007-01-03 10:42:32 +00:00