Commit Graph

4530 Commits

Author SHA1 Message Date
wouter
959eef4c63 - Be lenient when a NSEC NameError response with RCODE=NXDOMAIN is
received. This is okay according 4035, but not after revising
  existence in 4592.  NSEC empty non-terminals exist and thus the
  RCODE should have been NOERROR. If this occurs, and the RRsets
  are secure, we set the RCODE to NOERROR and the security status
  of the reponse is also considered secure.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3091 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-20 12:36:05 +00:00
matje
7e6a9939fa add test for being lenient with NSEC empty non-terminal Name Error responses with rcode=NXDOMAIN while it should be rcode=NOERROR
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3090 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-20 09:48:08 +00:00
matje
96e1b5ac58 Be lenient when a NSEC NameError response with RCODE=NXDOMAIN is received.
This is okay according 4035, but not after revising existence in 4592. 
NSEC empty non-terminals exist and thus the RCODE should have been NOERROR.

If this occurs, and the RRsets are secure, we set the RCODE to NOERROR and
the security status of the reponse is also considered secure.



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3089 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-20 09:46:50 +00:00
matje
7b88f8ede8 only whitespace changes
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3088 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-18 13:54:19 +00:00
wouter
f2aef54f3b review commit.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3087 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-18 09:58:51 +00:00
matje
ade96b6b9f - test for too lenient LOC record
- remove temporary review comments



git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3086 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-18 09:46:16 +00:00
matje
01297c01f1 name static function better
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3085 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-18 09:28:16 +00:00
wouter
9e39b4d2ff And starts service on Minix.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3084 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-14 09:50:25 +00:00
wouter
dcbc502008 Fix ldns_fgetc bug similar to ldns_bgetc.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3083 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-14 09:25:00 +00:00
wouter
58d360e16e configure generated.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3082 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-14 09:24:39 +00:00
wouter
9df60e0263 Port to Minix 3.2.1.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3081 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-14 09:23:32 +00:00
wouter
a42199b6c0 Fix parse of #553(NSD) string in sldns, quotes without spaces.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3080 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-11 08:29:42 +00:00
wouter
68b138cbd3 And fix #551 REGENT to COPYRIGHT HOLDER in license in file headings.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3079 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-07 13:28:39 +00:00
wouter
7aac37f469 - Fix #551: License change "Regents" to "Copyright holder", matching
the BSD license on opensource.org.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3078 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-07 12:43:43 +00:00
wouter
e592a4e8db - add body to ifstatement if locks disabled.
- add TXT string"string" test case to unit test.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3077 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-07 12:14:09 +00:00
wouter
90dfccf3bb add body to ifstatement if locks disabled.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3076 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-07 12:10:06 +00:00
wouter
289af9db17 iana portlist updated.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3075 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-07 09:51:54 +00:00
wouter
fd6807c38f - code documentation on the module interface.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3074 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-06 13:18:32 +00:00
wouter
e4c7bb73b1 prettier parse code.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3073 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-06 11:19:28 +00:00
wouter
50262a300a prettier code disable.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3072 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-06 11:01:50 +00:00
wouter
0d74f081a5 - sldns has type HIP.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3071 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-06 10:57:42 +00:00
wouter
2e369ae61d fix sldns parse tests on osx.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3070 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-05 13:40:55 +00:00
wouter
e394b6c068 more loc tests (and print 2.3 precision like in the RFC).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3069 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-03 15:46:50 +00:00
wouter
d2e4ebbb8c better goto.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3068 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-03 15:10:48 +00:00
wouter
b2371386b7 slightly nicer loc conversion.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3067 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-03 15:07:42 +00:00
wouter
e0b84e80a2 - Fix parse in sldns of quoted parenthesized text strings.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3066 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-03 14:28:57 +00:00
wouter
da830563d2 - Fixup link with lib/event2 subdir.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3065 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-03 11:41:19 +00:00
wouter
2553b4fb9f - Detect libevent2 install automatically by configure.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3064 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-02-03 11:02:17 +00:00
wouter
56edfdf8d4 - fixup type EUI48 and EUI64, type APL and type IPSECKEY in string
parse sldns.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3063 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-31 13:50:57 +00:00
wouter
25bb623632 and commitlog
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3062 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-31 11:33:22 +00:00
wouter
0d567cf966 fixup nss compile (no ldns in it).
fixup warning in unitldns
fixup WKS and rdata type service to print unsigned because strings are not portable.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3061 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-31 11:25:36 +00:00
wouter
5758551602 - unit test for ldns wire to str and back with zones, root, nlnetlabs
and types.sidnlabs.
- Fix for hex to string in unknown, atma and nsap.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3060 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-31 10:19:01 +00:00
wouter
5ad20035bd - delay-close does not act if there are udp-wait queries, so that
it does not make a socketdrain DoS easier.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3059 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-30 09:27:00 +00:00
wouter
d1cb31280e - delay-close: msec option that delays closing ports for which
the UDP reply has timed out.  Keeps the port open, only accepts
  the correct reply.  This correct reply is not used, but the port
  is open so that no port-denied ICMPs are generated.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3058 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-28 14:35:55 +00:00
wouter
8ce81b472f - iana portlist test updated so it does not touch the source
if there are no changes.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3057 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-28 10:12:13 +00:00
wouter
33a649c386 - iana portlist updated.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3056 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-28 10:00:01 +00:00
wouter
dd0aff21e9 please lint.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3055 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-27 10:41:16 +00:00
wouter
1315093384 - reuseport is attempted, then fallback to without on failure.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3054 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-27 10:27:19 +00:00
wouter
f8b0477cce Remove warnings on BSD systems.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3053 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 15:15:37 +00:00
wouter
a35941f56c And fixup for FreeBSD.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3052 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 13:35:35 +00:00
wouter
67175bd525 and the formatcode disabled (gcc reports it better).
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3051 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 13:24:33 +00:00
wouter
03da1e8f35 - made lint clean.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3050 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 13:23:45 +00:00
wouter
36afba318e - so-reuseport: yesno option to distribute queries evenly over
threads on Linux (Thanks Robert Edmonds).


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3049 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 11:43:38 +00:00
wouter
2920d0fa82 - speed up unbound (reports say it could be up to 10%), by reducing
lock contention on localzones.lock.  It is changed to an rwlock.


git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3048 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 11:21:15 +00:00
wouter
f19df3745f - unbound-event.h is installed if you configure --enable-event-api.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3047 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 10:55:28 +00:00
wouter
d80aaee750 - iana portlist updated.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3046 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 10:42:42 +00:00
wouter
a60b5a4077 - Change unbound-event.h to use void* buffer, length idiom.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3045 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-24 08:16:56 +00:00
wouter
63354244f1 - Fix #547: no trustanchor written if filesystem full, fclose checked.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3044 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-21 10:14:55 +00:00
wouter
de91e9d4f2 - iana portlist updated.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3043 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-17 15:29:04 +00:00
wouter
2ac9c97c73 - Fix isprint() portability in sldns, uses unsigned int.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3042 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-01-17 14:45:14 +00:00