George Thessalonikefs
6819c1e444
- Merge #759 from Tom Carpay: Add EDE (RFC8914) caching.
2023-07-30 11:48:04 +02:00
George Thessalonikefs
50ea4a1072
Address review comments for #759 :
...
- Decrease allocations for "" EDE strings when loading the cachedump.
- Check for existence of EDE code before attaching.
2023-07-28 12:56:13 +02:00
George Thessalonikefs
5b7faca7db
For #909 : Numeric truncation when parsing TYPEXX and CLASSXX representation
...
- Fix return values.
- Formatting nits.
2023-07-20 11:42:05 +02:00
headshog
0b131d5a31
parse sldns_get_rr_class_by_name and sldns_get_rr_type_by_name return value 0
2023-07-19 18:09:03 +03:00
George Thessalonikefs
90b434c260
- For #759 : add support for cached EDEs to cachedump
2023-07-19 17:06:10 +02:00
George Thessalonikefs
f5a2a58ce3
Review for #759 :
...
- Fix SEGFAULT in load_cache control command.
- Change reason_bogus_str to an explicit NULL-terminated string.
- Fix potential memory leak when discarding a message for referrals and
0 TTL answers.
- Fix reason_bogus initialization in localzone answers.
- reply_info creation in validator is always regional.
2023-07-17 17:26:31 +02:00
George Thessalonikefs
15b8d8b96a
Merge branch 'master' into features/ede-caching
2023-07-13 11:25:59 +02:00
George Thessalonikefs
a952ac17be
Merge branch 'tilan7663-subnet_cache_prefetch' into subnet_cache_prefetch
2023-07-07 16:50:58 +02:00
George Thessalonikefs
40e47bf767
- For #664 : easier code flow for subnetcache prefetching.
...
- For #664 : add testcase.
2023-07-06 22:22:21 +02:00
George Thessalonikefs
41dac805f5
- Merge #892 : Add cachedb hit stat. Introduces 'num.query.cachedb' as
...
a new statistical counter.
2023-06-27 12:46:26 +02:00
George Thessalonikefs
0f1ea7e490
- Properly handle all return values of worker_check_request during
...
early EDE code.
- Do not check the incoming request more than once.
2023-06-14 11:40:59 +02:00
Yorgos Thessalonikefs
9412b9c2ca
Review comment for daemon/stats.c
...
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
2023-06-02 12:39:23 +02:00
George Thessalonikefs
4f52be4db9
- Introduce num.query.cachedb to track cache hits for the external cache.
2023-05-30 17:49:50 +02:00
W.C.A. Wijngaards
2a2598dbf2
- Fix #888 : [FR] Use kernel timestamps for dnstap.
2023-05-16 08:50:38 +02:00
George Thessalonikefs
20184483df
Merge branch 'eqvinox-nat64'
2023-05-01 18:24:05 +02:00
W.C.A. Wijngaards
70c2b587fc
- Fix RPZ IP responses with trigger rpz-drop on cache entries, that
...
they are dropped.
2023-05-01 09:26:17 +02:00
George Thessalonikefs
e1ec3cf893
Merge branch 'nat64' of https://github.com/eqvinox/unbound into eqvinox-nat64
2023-04-26 15:14:39 +02:00
Vadim Fedorenko
263096d1f6
stats: add query max wait time metric
...
Add new statistic value to know the size of the queue in microseconds.
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
2023-04-26 03:27:25 -07:00
Vadim Fedorenko
e577ab105e
stats: add counter for timed out queries
...
Add counter `num_queries_timed_out` meaning queries that were sitting in the
socket queue and waiting to being processed too long. There is no reason
to process such queries, so let's drop it in the very beginning of the
pipeline.
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
2023-04-26 03:27:25 -07:00
Vadim Fedorenko
2e6ddd6032
netevent: parse and store rcv timestamp from sock
...
Add special field in comm_point to store the software receive timestamp
for every particular UDP packet. Aux data parser is updated to read
values and the whole callback is switched to use recvmsg form.
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
2023-04-26 03:26:51 -07:00
Vadim Fedorenko
a197aac2f6
timeval_func: move all timeval manipulation to separate file
...
There are several definitions of the same functions manipulating timeval
structures. Let's move them to separate file and arrange the code
preperly.
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
2023-04-26 03:23:41 -07:00
Vadim Fedorenko
648ad4db6f
Linting change.
...
Remove config parser/lexer code as it's rebuilded every time but can
break adding new config options.
Also clean up the code base to avoid mixing actual code changes and lint
issues.
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
2023-04-25 17:05:00 -07:00
W.C.A. Wijngaards
a97d7175a6
- Fix ssl.h include brackets, instead of quotes.
2023-03-16 15:40:43 +01:00
Sergey Kacheev
52a4ccee18
add a metric about the maximum number of collisions in lrushah
2023-01-13 13:33:38 +07:00
George Thessalonikefs
7716d26d46
- Use an explicit 'reload_keep_cache' command and introduce test cases
...
for #569 .
2022-12-14 16:33:28 +01:00
George Thessalonikefs
857d6ce3a1
Merge branch 'reuse-caches-on-reload' of https://github.com/jinmeiib/unbound-1 into jinmeiib-reuse-caches-on-reload
2022-12-13 16:42:38 +01:00
George Thessalonikefs
859d0f2dfe
- Expose 'statistics-inhibit-zero' as a configuration option; the
...
default value retains Unbound's behavior.
2022-12-13 10:47:37 +01:00
George Thessalonikefs
90f6cb1158
- Add SVCB and HTTPS to the types removed by 'unbound-control flush'.
2022-11-30 14:33:16 +01:00
George Thessalonikefs
896f7a8306
- Ignore expired error responses.
2022-11-22 17:44:55 +01:00
TCY16
8b4a8493d0
Merge branch 'master' of github.com:NLnetLabs/unbound into features/ede-caching
2022-11-21 11:34:36 +01:00
TCY16
b65ff768bc
remove superfluous variables
2022-11-18 11:30:11 +01:00
David Lamparter
64fb06f892
NAT64 support
...
This implements #721 . Includes documentation and some very basic tests.
Please refer to doc for further detail.
2022-11-07 11:37:50 +00:00
W.C.A. Wijngaards
6b8181acb7
- Fix dnscrypt compile for proxy protocol code changes.
2022-10-05 14:09:12 +02:00
Yorgos Thessalonikefs
c4e51a4cfe
PROXYv2 downstream support ( #760 )
2022-10-03 15:29:47 +02:00
W.C.A. Wijngaards
7d96a7e3fe
- Fix windows compile, the identifier interface is defined in headers.
2022-10-03 15:03:50 +02:00
TCY16
d731fa2e21
use correct edns_list attach function
2022-09-21 16:19:38 +02:00
TCY16
dcfcde2ec8
add cached EDE strings
2022-09-21 11:21:33 +02:00
Yorgos Thessalonikefs
eb02170338
Apply suggestions from code review
...
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
2022-09-16 14:43:23 +02:00
George Thessalonikefs
d301bfe4a2
- ACL per interface: refactor, complete testing and a bugfix for
...
interface names.
2022-09-11 20:57:41 +02:00
George Thessalonikefs
7e9fd2114b
Cleared error messages for interface-* options.
2022-09-11 20:21:32 +02:00
George Thessalonikefs
c30bdff939
Initial commit for interface based ACL.
2022-09-11 20:21:32 +02:00
W.C.A. Wijngaards
5bbaf78c3f
- Remove include that was there for debug purposes.
2022-09-02 10:11:23 +02:00
W.C.A. Wijngaards
57230d7f22
- Fix to log a verbose message at operational notice level if a
...
thread is not responding, to stats requests. It is logged with
thread identifiers.
2022-09-01 15:14:20 +02:00
TCY16
5f309d0018
Add caching EDEs
2022-09-01 14:10:14 +02:00
W.C.A. Wijngaards
f6753a0f10
- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.
2022-08-01 13:24:40 +02:00
JINMEI Tatuya
fccb2eb2e8
prevent memory leak in case cache isn't reused
2022-07-22 14:33:21 -07:00
George Thessalonikefs
b816318106
- Fix #704 : [FR] Statistics counter for number of outgoing UDP queries
...
sent; introduces 'num.query.udpout' to the 'unbound-control stats'
command.
2022-06-29 10:51:54 +02:00
George Thessalonikefs
c8e7539313
- Formatting.
2022-06-28 18:31:27 +02:00
George Thessalonikefs
12796d0af8
- Fix for cached 0 TTL records to not trigger prefetching when
...
serve-expired-client-timeout is set.
2022-06-28 17:05:28 +02:00
George Thessalonikefs
7c9177095f
- Remove unused LDNS function check for GOST Engine unloading.
2022-06-20 16:27:15 +02:00