wouter
6c0069a68c
fix to please gcc 8 and lint.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4678 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-05-03 14:29:15 +00:00
wouter
cd8ce5ecdb
And cast here.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4677 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-05-03 14:17:56 +00:00
wouter
14cb872630
- Fix function type cast warning in libunbound context callback type.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4676 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-05-03 14:12:19 +00:00
wouter
19c3997e15
Fixup tests for checklocks. Add auth axfr test for socket code.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4511 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-02-05 15:33:32 +00:00
wouter
f92f7fb2d6
auth zone, make depend, fallback, create and delete, and lease_time,
...
and lock fixes.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4466 be551aaa-1e26-0410-a405-d3ace91eadb9
2018-01-30 10:35:20 +00:00
wouter
39ba948040
- Spelling fixes, from Phil Porada.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4344 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-09-15 14:29:28 +00:00
ralph
4113eb0a41
- Generalise inplace callback (de)registration
...
- (de)register inplace callbacks for module id
- No unbound-control set_option for ECS options
- Deprecated client-subnet-opcode config option
- Introduced client-subnet-always-forward config option
- Changed max-client-subnet-ipv6 default to 56 (as in RFC)
- Removed extern ECS config options
- module_restart_next now calls clear on all following modules
- Also create ECS module qstate on module_event_pass event
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@4092 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-04-06 13:13:06 +00:00
wouter
54bfc89f6b
compile fix
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3990 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-01-19 11:34:21 +00:00
wouter
60a7029fcd
- Fix to rename internally used types from _t to _type, because _t
...
type names are reserved by POSIX.
- iana portlist update
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3989 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-01-19 10:25:41 +00:00
wouter
affae9bc85
- Fix to Rename ub_callback_t to ub_callback_type, because POSIX
...
reserves _t typedefs.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3988 be551aaa-1e26-0410-a405-d3ace91eadb9
2017-01-19 09:08:15 +00:00
george
4812f02dd0
- Added generic EDNS code for registering known EDNS option codes,
...
bypassing the cache response stage and uniquifying mesh states. Four EDNS
option lists were added to module_qstate (module_qstate.edns_opts_*) to
store EDNS options from/to front/back side.
- Added two flags to module_qstate (no_cache_lookup, no_cache_store) that
control the modules' cache interactions.
- Added code for registering inplace callback functions. The registered
functions can be called just before replying with local data or Chaos,
replying from cache, replying with SERVFAIL, replying with a resolved
query, sending a query to a nameserver. The functions can inspect the
available data and maybe change response/query related data (i.e. append
EDNS options).
- Updated Python module for the above.
- Updated Python documentation.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3947 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-12-06 13:42:51 +00:00
wouter
1ad184b5e2
- Fix time in case answer comes from cache in ub_resolve_event().
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3732 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-05-30 12:48:11 +00:00
willem
b8f745d47d
User defined pluggable event mechanism (for review)
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/branches/ub_event@3647 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-03-07 14:10:06 +00:00
wouter
3b4f348a23
prettier, now for the zone syntax check.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3637 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-02-23 13:29:35 +00:00
wouter
9156edbfce
Prettier code.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3636 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-02-23 13:21:13 +00:00
wouter
ad524d32ce
- ub_ctx_set_stub() function for libunbound to config stub zones.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3632 be551aaa-1e26-0410-a405-d3ace91eadb9
2016-02-23 10:43:10 +00:00
wouter
c80b550584
Fixup nothread compile on Linux.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3524 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-10-28 10:37:53 +00:00
wouter
949509816f
- Fix #705 : ub_ctx_set_fwd() return value mishandled on windows.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3489 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-09-22 08:59:10 +00:00
wouter
55d089da65
fix windows portability
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3474 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-08-13 15:06:01 +00:00
wouter
dcb7d29d76
- Reap the child process that libunbound spawns.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3473 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-08-13 14:17:44 +00:00
wouter
0ad11968be
- Fix #674 : Do not free pointers given by getenv.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3432 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-06-02 07:31:43 +00:00
wouter
c0a74addd8
And skip dos-newlines for only addrs on line.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3385 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-04-07 07:54:30 +00:00
wouter
73c16202a0
- Libunbound skips dos-line-endings from etc/hosts.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3384 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-04-07 07:51:43 +00:00
wouter
410ac6cd67
- rename ldns subdirectory to sldns to avoid name collision.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3380 be551aaa-1e26-0410-a405-d3ace91eadb9
2015-03-26 10:21:38 +00:00
wouter
cd08165992
- Add ub_ctx_add_ta_autr function to add a RFC5011 automatically
...
tracked trust anchor to libunbound.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3251 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-11-04 09:11:59 +00:00
wouter
def3dfd114
More unsigned chasts for toupper/tolower/ctype
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3242 be551aaa-1e26-0410-a405-d3ace91eadb9
2014-10-13 08:35:00 +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
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
db8f72c4f7
- Fix sldns to use sldns_ prefix for all ldns_ variables.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3022 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-12-03 09:11:16 +00:00
wouter
8e6ee27eda
- separate ldns into core ldns inside ldns/ subdirectory. No more
...
--with-ldns is needed and unbound does not rely on libldns.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2998 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-10-31 15:09:26 +00:00
wouter
d672c0066c
- Patch from Neel Goyal: Add an API call to set an event base on an
...
existing ub_ctx. This basically just destroys the current worker and
sets the event base to the current. And fix a deadlock in
ub_resolve_event – the cfglock is held when libworker_create is
called. This ends up trying to acquire the lock again in
context_obtain_alloc in the call chain.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2992 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-10-22 09:32:10 +00:00
wouter
a6234674fb
- unbound-event.h is installed if configured --with-libevent. It
...
contains low-level library calls, that use libevent's event_base
and an ldns_buffer for the wire return packet to perform async
resolution in the client's eventloop.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2970 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-09-26 08:34:14 +00:00
wouter
4bd845dea6
- More fixes for bug#519: for the threaded case test if the bg
...
thread has been killed, on ub_ctx_delete, to avoid hangs.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2946 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-08-26 12:24:27 +00:00
wouter
78a520b994
- Fix for const string literals in C++ for libunbound, from Karel
...
Slany.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2913 be551aaa-1e26-0410-a405-d3ace91eadb9
2013-06-18 07:33:44 +00:00
wouter
11bd495b61
- Added ub_version(). API version increase, with (binary) backwards
...
compatibility for the previous version.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2584 be551aaa-1e26-0410-a405-d3ace91eadb9
2012-01-12 13:52:38 +00:00
wouter
34fef67b47
- Neat function prototypes, unshadowed local declarations.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2188 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-07-07 13:13:36 +00:00
wouter
5fb04b1a9c
Move includes to code files.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@2035 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-03-12 15:17:48 +00:00
wouter
fdd0dd17cd
get and set option more accessible.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1990 be551aaa-1e26-0410-a405-d3ace91eadb9
2010-02-23 13:53:10 +00:00
wouter
3d85790d25
Fix#282 libunbound memleak on error condition by Eric Sesterhenn.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1906 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-11-16 13:36:54 +00:00
wouter
7acf38ac32
- Made new validator error string available from libunbound for
...
applications. It is in result->why_bogus, a zero-terminated string.
unbound-host prints it by default if a result is bogus.
Also the errinf is public in module_qstate (for other modules).
Binary API different. bumped library ABI version.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1874 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-10-08 17:05:53 +00:00
wouter
f9e81fd89d
Luca Bruno's patch.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1806 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-09-03 10:07:13 +00:00
wouter
b81c648acf
new libunbound calls documented.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1571 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-04-01 12:57:13 +00:00
wouter
a93beb8c1c
python contribution from Zdenek Vasicek and Marek Vavrusa (BSD licensed).
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1556 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-03-25 14:47:47 +00:00
wouter
aff96dc20a
Fixup race condition in ub_cancel. For 1.3.0.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1451 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-02-05 09:48:02 +00:00
wouter
eeaddb3e7a
sun cc warnings
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1439 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-15 10:34:18 +00:00
wouter
e84409c12f
fixes for suncc warnings
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1438 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-15 10:29:17 +00:00
wouter
7bd73ba9ca
chrooted include file fix
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1411 be551aaa-1e26-0410-a405-d3ace91eadb9
2009-01-06 15:47:15 +00:00
wouter
9d25fafcf4
- moved pipe actions to util/tube.c. easier porting and shared code.
...
- check _raw() commpoint callbacks with fptr_wlist.
- iana port update.
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1163 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-23 09:23:03 +00:00
wouter
61a0dce0ff
fixup error handling in libunbound ub_resolve().
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1149 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-07-15 10:22:39 +00:00
wouter
a305543834
mingw port continues.
...
git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@1139 be551aaa-1e26-0410-a405-d3ace91eadb9
2008-06-25 14:36:10 +00:00