]> git.ipfire.org Git - thirdparty/pdns.git/log
thirdparty/pdns.git
4 years agorec: Fix getEDNSExtendedErrorOptFromString() on CentOS 6 9751/head
Remi Gacogne [Thu, 19 Nov 2020 13:24:01 +0000 (14:24 +0100)] 
rec: Fix getEDNSExtendedErrorOptFromString() on CentOS 6

pdns_string_view falls back to a regular string there, so there
was an ambiguity on which overloaded function to call.

4 years agoMerge pull request #9735 from Habbie/pdnsutil-dname auth-4.4.0-beta1
Peter van Dijk [Thu, 19 Nov 2020 09:47:49 +0000 (10:47 +0100)] 
Merge pull request #9735 from Habbie/pdnsutil-dname

auth: pdnsutil check-zone: DNAME fixes

4 years agoMerge pull request #9523 from kpfleming/builder-improvements
Peter van Dijk [Thu, 19 Nov 2020 09:46:20 +0000 (10:46 +0100)] 
Merge pull request #9523 from kpfleming/builder-improvements

Package builder improvements

4 years agoMerge pull request #9673 from rgacogne/rec-ede
Remi Gacogne [Wed, 18 Nov 2020 20:47:37 +0000 (21:47 +0100)] 
Merge pull request #9673 from rgacogne/rec-ede

rec: Add support for rfc8914: Extended DNS Errors

4 years agoMerge pull request #9704 from mind04/pdns-performance
Peter van Dijk [Wed, 18 Nov 2020 13:14:42 +0000 (14:14 +0100)] 
Merge pull request #9704 from mind04/pdns-performance

auth: nxdomain performance

4 years agoauth: pdnsutil check-zone: DNAME fixes 9735/head
Peter van Dijk [Wed, 18 Nov 2020 10:53:30 +0000 (11:53 +0100)] 
auth: pdnsutil check-zone: DNAME fixes

* don't warn about occlusion of records with the same name as the DNAME record
* do warn about occlusion when the DNAME is at the apex

4 years agoMerge pull request #9731 from Habbie/auth-quote-ips
Peter van Dijk [Wed, 18 Nov 2020 12:33:14 +0000 (13:33 +0100)] 
Merge pull request #9731 from Habbie/auth-quote-ips

auth: put quotes around some IPs to make messages easier to read

4 years agoauth: SOAData is now a member variable in PacketHandler 9704/head
Kees Monshouwer [Wed, 11 Nov 2020 11:22:37 +0000 (12:22 +0100)] 
auth: SOAData is now a member variable in PacketHandler

4 years agoauth: avoid the use of getSOAUncached() in single backend setups
Kees Monshouwer [Tue, 10 Nov 2020 19:17:33 +0000 (20:17 +0100)] 
auth: avoid the use of getSOAUncached() in single backend setups

4 years agoauth: #9496 was incomplete, ignore cryptokeys in emitNSEC() and emitNSEC3()
Kees Monshouwer [Tue, 10 Nov 2020 19:12:06 +0000 (20:12 +0100)] 
auth: #9496 was incomplete, ignore cryptokeys in emitNSEC() and emitNSEC3()

4 years agoMerge pull request #9713 from pieterlexis/trusted-notification-proxy
Peter van Dijk [Wed, 18 Nov 2020 10:55:16 +0000 (11:55 +0100)] 
Merge pull request #9713 from pieterlexis/trusted-notification-proxy

Allow ip ranges as trusted-notification-proxy

4 years agoMerge pull request #8707 from Habbie/lmdb-domaininfo-serial
Peter van Dijk [Wed, 18 Nov 2020 09:22:12 +0000 (10:22 +0100)] 
Merge pull request #8707 from Habbie/lmdb-domaininfo-serial

lmdb: fill di.serial (code stolen straight from gsqlbackend)

4 years agorec: Remove trailing whitespaces 9673/head
Remi Gacogne [Wed, 18 Nov 2020 08:22:14 +0000 (09:22 +0100)] 
rec: Remove trailing whitespaces

4 years agorec: Test that the "zero scope" option doesn't exceed the maximum payload size
Remi Gacogne [Tue, 17 Nov 2020 10:21:14 +0000 (11:21 +0100)] 
rec: Test that the "zero scope" option doesn't exceed the maximum payload size

When use-incoming-edns-subnet is enabled, the query has an ECS option,
and the answer was not variable, we do return a 0-scoped ECS answer,
to make it possible to the client (dnsdist for example) to cache the
response and serve it to all clients.
Still we need to make sure that adding the 0-scoped ECS option does not
exceed the client EDNS UDP payload size.

4 years agorec: Rename the EDE setting to 'extended-resolution-errors'
Remi Gacogne [Tue, 17 Nov 2020 08:28:14 +0000 (09:28 +0100)] 
rec: Rename the EDE setting to 'extended-resolution-errors'

Also make RPZ and Lua EDE independent of that setting.

4 years agorec: PolicyOverridesGettag is the default for RPZ zones
Remi Gacogne [Tue, 17 Nov 2020 08:15:46 +0000 (09:15 +0100)] 
rec: PolicyOverridesGettag is the default for RPZ zones

4 years agorec: Use a struct to pass gettag_ffi parameters
Remi Gacogne [Mon, 16 Nov 2020 17:30:02 +0000 (18:30 +0100)] 
rec: Use a struct to pass gettag_ffi parameters

4 years agorec: Better handling of max packet size for answers with a 0-scope
Remi Gacogne [Mon, 16 Nov 2020 17:01:18 +0000 (18:01 +0100)] 
rec: Better handling of max packet size for answers with a 0-scope

4 years agorec: Fix the parsing of RPZ's extendedErrorCode setting
Remi Gacogne [Fri, 13 Nov 2020 08:00:49 +0000 (09:00 +0100)] 
rec: Fix the parsing of RPZ's extendedErrorCode setting

Mixing uint16_t and uin32_t in the same boost::variant passed to Lua
does not work well.

4 years agorec: Implement Extended DNS Errors for RPZ hits
Remi Gacogne [Thu, 12 Nov 2020 15:51:38 +0000 (16:51 +0100)] 
rec: Implement Extended DNS Errors for RPZ hits

4 years agorec: Add Lua bindings, regression tests for Extended DNS Errors
Remi Gacogne [Thu, 12 Nov 2020 13:53:47 +0000 (14:53 +0100)] 
rec: Add Lua bindings, regression tests for Extended DNS Errors

4 years agorec: Add unit tests for Extended DNS Errors
Remi Gacogne [Tue, 10 Nov 2020 11:39:13 +0000 (12:39 +0100)] 
rec: Add unit tests for Extended DNS Errors

4 years agorec: Fix formatting of the EDNS Extended Error codes
Remi Gacogne [Fri, 6 Nov 2020 09:17:22 +0000 (10:17 +0100)] 
rec: Fix formatting of the EDNS Extended Error codes

4 years agorec: Add support for rfc8914: Extended DNS Errors
Remi Gacogne [Thu, 5 Nov 2020 10:38:55 +0000 (11:38 +0100)] 
rec: Add support for rfc8914: Extended DNS Errors

Still needs:
- unit tests
- regression tests

Would be nice to have:
- ability to set an extended error from Lua (FFI or not)
- same for RPZ matches

4 years agolmdb: fill di.serial 8707/head
Peter van Dijk [Wed, 15 Jan 2020 20:02:13 +0000 (21:02 +0100)] 
lmdb: fill di.serial

4 years agoMerge pull request #9745 from Habbie/auth-lua-intermittent
Peter van Dijk [Tue, 17 Nov 2020 17:09:19 +0000 (18:09 +0100)] 
Merge pull request #9745 from Habbie/auth-lua-intermittent

auth LUA tests: give healthchecker more time

4 years agoauth LUA tests: give healthchecker more time 9745/head
Peter van Dijk [Tue, 17 Nov 2020 15:01:01 +0000 (16:01 +0100)] 
auth LUA tests: give healthchecker more time

4 years agoMerge pull request #9714 from Habbie/mysql-8
Peter van Dijk [Tue, 17 Nov 2020 13:07:19 +0000 (14:07 +0100)] 
Merge pull request #9714 from Habbie/mysql-8

auth: disable mysql automatic charset detection

4 years agoMerge pull request #9712 from kpfleming/use-python3
Peter van Dijk [Tue, 17 Nov 2020 12:57:21 +0000 (13:57 +0100)] 
Merge pull request #9712 from kpfleming/use-python3

Use Python 3 in build system

4 years agoauth-py tests: py3 9712/head
Peter van Dijk [Tue, 17 Nov 2020 09:57:45 +0000 (10:57 +0100)] 
auth-py tests: py3

4 years agoMerge pull request #9737 from rgacogne/ddist-dump-cache-rcode
Remi Gacogne [Tue, 17 Nov 2020 10:59:56 +0000 (11:59 +0100)] 
Merge pull request #9737 from rgacogne/ddist-dump-cache-rcode

dnsdist: Add the response code in the packet cache dump

4 years agoBaseHTTPServer is now http.server in Python 3
Kevin P. Fleming [Tue, 17 Nov 2020 02:45:37 +0000 (21:45 -0500)] 
BaseHTTPServer is now http.server in Python 3

4 years agoSuppress Python 3 parsing of Unicode literals
Kevin P. Fleming [Tue, 17 Nov 2020 01:58:01 +0000 (20:58 -0500)] 
Suppress Python 3 parsing of Unicode literals

4 years agoAdditional fixes for Python 3 conversion
Peter van Dijk [Tue, 17 Nov 2020 00:59:35 +0000 (19:59 -0500)] 
Additional fixes for Python 3 conversion

4 years agoMerge pull request #9591 from omoerbeek/fstrm-table-driven-options
Remi Gacogne [Mon, 16 Nov 2020 16:27:54 +0000 (17:27 +0100)] 
Merge pull request #9591 from omoerbeek/fstrm-table-driven-options

Long overdue table driven option setting for libfstrm

4 years agodnsdist: Add the response code in the packet cache dump 9737/head
Remi Gacogne [Mon, 16 Nov 2020 11:09:20 +0000 (12:09 +0100)] 
dnsdist: Add the response code in the packet cache dump

4 years agoUse string instead of char * 9591/head
Otto Moerbeek [Mon, 16 Nov 2020 07:04:10 +0000 (08:04 +0100)] 
Use string instead of char *

Co-authored-by: Remi Gacogne <rgacogne+github@valombre.net>
4 years agoauth: put quotes around some IPs to make messages easier to read 9731/head
Peter van Dijk [Sat, 14 Nov 2020 20:47:06 +0000 (21:47 +0100)] 
auth: put quotes around some IPs to make messages easier to read

4 years agoMerge pull request #9729 from appliedprivacy/patch-3
Remi Gacogne [Sat, 14 Nov 2020 18:50:48 +0000 (19:50 +0100)] 
Merge pull request #9729 from appliedprivacy/patch-3

fix a typo in prometheus metrics dnsdist_frontend_tlshandshakefailures #9728

4 years agofix typo #9728 9729/head
appliedprivacy [Sat, 14 Nov 2020 17:28:44 +0000 (17:28 +0000)] 
fix typo #9728

4 years agoMerge pull request #9727 from georgeto/dnsdist-docs-typo
Peter van Dijk [Sat, 14 Nov 2020 08:30:54 +0000 (09:30 +0100)] 
Merge pull request #9727 from georgeto/dnsdist-docs-typo

dnsdist: Fix typo in DNSNameSet documentation

4 years agodnsdist: Fix typo in DNSNameSet documentation 9727/head
georgeto [Sat, 14 Nov 2020 00:24:17 +0000 (01:24 +0100)] 
dnsdist: Fix typo in DNSNameSet documentation

The newDNSNameSet() function has no name argument.

4 years agoadd venv to Dockerfile-auth for JSON API file
Peter van Dijk [Fri, 13 Nov 2020 18:43:35 +0000 (19:43 +0100)] 
add venv to Dockerfile-auth for JSON API file

4 years agorecursor DNSSEC regression tests: skip debug cachedump
Peter van Dijk [Fri, 13 Nov 2020 16:03:17 +0000 (17:03 +0100)] 
recursor DNSSEC regression tests: skip debug cachedump

4 years agorecursor DNSSEC regression tests: migrate to Python 3
Peter van Dijk [Fri, 13 Nov 2020 11:40:23 +0000 (12:40 +0100)] 
recursor DNSSEC regression tests: migrate to Python 3

4 years agoUse Python 3 in build system
Kevin P. Fleming [Fri, 13 Nov 2020 22:35:34 +0000 (17:35 -0500)] 
Use Python 3 in build system

The various tasks in the build system which use Python
will now use Python 3 (3.6 or later) and the 'venv' module,
instead of the 'virtualenv' tool which was primarily used
with Python 2.7.

4 years agoMerge pull request #9708 from Habbie/auth-regress-docs-mysql
Peter van Dijk [Fri, 13 Nov 2020 16:04:16 +0000 (17:04 +0100)] 
Merge pull request #9708 from Habbie/auth-regress-docs-mysql

auth regression docs: more mysql variants

4 years agoMerge pull request #9721 from georgeto/lua-binding-const-qualifier
Remi Gacogne [Fri, 13 Nov 2020 16:03:15 +0000 (17:03 +0100)] 
Merge pull request #9721 from georgeto/lua-binding-const-qualifier

dnsdist: Improve const-correctness of Lua bindings

4 years agodnsdist: Improve const-correctness of Lua bindings 9721/head
georgeto [Fri, 13 Nov 2020 13:05:36 +0000 (14:05 +0100)] 
dnsdist: Improve const-correctness of Lua bindings

Since LuaWrapper enforces const-correctness, a const (shared) pointer
to an object can only read members and call const methods.
Therefore we have to take care to use the const qualifier during
registration of constant lambda Lua function bindings.

An example where the absence of the const qualifier was problematic is
LuaRule, which invokes its user provided match function with a constant
DNSQuestion object. Because the functions of DNSQuestion lacked
the const qualifier (e.g. getTag()), it was not possible to call them
from within the LuaRule match function.

4 years agoMerge pull request #9716 from rgacogne/webserver-accept-yaml
Remi Gacogne [Fri, 13 Nov 2020 11:24:39 +0000 (12:24 +0100)] 
Merge pull request #9716 from rgacogne/webserver-accept-yaml

Fix initialization of WebServer::accept_yaml

4 years agoFix initialization of WebServer::accept_yaml 9716/head
Remi Gacogne [Fri, 13 Nov 2020 07:41:05 +0000 (08:41 +0100)] 
Fix initialization of WebServer::accept_yaml

4 years agoMerge pull request #9633 from omoerbeek/rec-opensbd-udpsockets dnsdist-1.6.0-alpha0
Otto Moerbeek [Thu, 12 Nov 2020 19:21:46 +0000 (20:21 +0100)] 
Merge pull request #9633 from omoerbeek/rec-opensbd-udpsockets

rec: two OpenBSD improvemenst wrt UDP sockets: port randomization and EGAIN errors

4 years agoMerge pull request #9643 from omoerbeek/rec-add-some-deps
Otto Moerbeek [Thu, 12 Nov 2020 19:20:53 +0000 (20:20 +0100)] 
Merge pull request #9643 from omoerbeek/rec-add-some-deps

rec: add a few missing dependencies to README

4 years agoMerge pull request #9707 from omoerbeek/rec-chain-already-processing
Otto Moerbeek [Thu, 12 Nov 2020 19:20:14 +0000 (20:20 +0100)] 
Merge pull request #9707 from omoerbeek/rec-chain-already-processing

rec: Do not add request to a wait chain that's already processed or being processed

4 years agoImproved wording of comments 9633/head
Otto Moerbeek [Thu, 12 Nov 2020 19:17:13 +0000 (20:17 +0100)] 
Improved wording of comments

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
4 years agoApply suggestions from code review 9713/head
Pieter Lexis [Thu, 12 Nov 2020 16:06:07 +0000 (17:06 +0100)] 
Apply suggestions from code review

Co-authored-by: Peter van Dijk <peter.van.dijk@powerdns.com>
4 years agoauth mysql: disable automatic charset detection 9714/head
Peter van Dijk [Thu, 12 Nov 2020 13:55:22 +0000 (14:55 +0100)] 
auth mysql: disable automatic charset detection

4 years agoauth regress: allow per-backend test skipping
Peter van Dijk [Thu, 12 Nov 2020 13:43:46 +0000 (14:43 +0100)] 
auth regress: allow per-backend test skipping

4 years agoAllow ip ranges as trusted-notification-proxy
Pieter Lexis [Thu, 12 Nov 2020 13:32:02 +0000 (14:32 +0100)] 
Allow ip ranges as trusted-notification-proxy

This also stops us from doing string comparison for that setting.

Fixes #9711

4 years agoMerge pull request #8911 from kpfleming/add-api-docs-endpoint
Peter van Dijk [Thu, 12 Nov 2020 12:05:55 +0000 (13:05 +0100)] 
Merge pull request #8911 from kpfleming/add-api-docs-endpoint

Add '/api/docs' endpoint to Auth server

4 years agoMerge pull request #9688 from mind04/pdns-loglevel
Peter van Dijk [Wed, 11 Nov 2020 15:42:50 +0000 (16:42 +0100)] 
Merge pull request #9688 from mind04/pdns-loglevel

Pdns AXFR, IXFR loglevels

4 years agoauth: make notify logging less verbose 9688/head
Kees Monshouwer [Tue, 10 Nov 2020 22:38:56 +0000 (23:38 +0100)] 
auth: make notify logging less verbose

4 years agoauth: make primary logging less verbose
Kees Monshouwer [Mon, 9 Nov 2020 12:36:14 +0000 (13:36 +0100)] 
auth: make primary logging less verbose

4 years agoauth regression docs: more mysql variants 9708/head
Peter van Dijk [Wed, 11 Nov 2020 12:42:01 +0000 (13:42 +0100)] 
auth regression docs: more mysql variants

4 years agoDo not add request to a wait chain that's already processed or being processed. 9707/head
Otto Moerbeek [Wed, 11 Nov 2020 11:02:50 +0000 (12:02 +0100)] 
Do not add request to a wait chain that's already processed or being processed.

The following scenario can occur. Multiple concurrent clients doing the same query A
are needed to trigger it:

1. Incoming request A, which has a need for request X
2. Add request X to chain because we already have an identical outstanding request
3. We receive the reply for X
4. We process the chain
5. In the meantime a new request for X that's identical is added to the chain
6. The added id in step 5 is not being processed anymore -> timeout

This can happen if request X has TTL 0, otherwise the record cache would have a hit.

4 years agoMerge pull request #9700 from pieterlexis/docker-release-builds
Peter van Dijk [Wed, 11 Nov 2020 11:10:07 +0000 (12:10 +0100)] 
Merge pull request #9700 from pieterlexis/docker-release-builds

Allow setting a fake-ish version number when building release images

4 years agoAdd a few comments as suggested by Habbie
Otto Moerbeek [Wed, 11 Nov 2020 08:09:27 +0000 (09:09 +0100)] 
Add a few comments as suggested by Habbie

4 years agoMerge pull request #9697 from Habbie/rec-nod-oversize
Peter van Dijk [Tue, 10 Nov 2020 22:26:02 +0000 (23:26 +0100)] 
Merge pull request #9697 from Habbie/rec-nod-oversize

rec: do not send overly long NOD lookups

4 years agoauth: Add /api/docs endpoint to obtain OpenAPI document 8911/head
Kevin P. Fleming [Tue, 10 Nov 2020 12:29:39 +0000 (07:29 -0500)] 
auth: Add /api/docs endpoint to obtain OpenAPI document

This patch adds an /api/docs endpoint to the API webserver,
allowing clients to obtain the OpenAPI (Swagger) document that
describes the server's API directly from the server.

It also modifies the response body mechanism in the webserver
to no longer assume JSON output, but allow handlers to specify
JSON, YAML, or plain text. It also adds detection of YAML
support in the request so that handlers can choose which type
to send in their response. Since there is not yet a standard
MIME type for YAML, 'application/x-yaml' is used since it
appears to be the most commonly used type.

Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
4 years agoMerge pull request #9698 from omoerbeek/namespace-rampage
Otto Moerbeek [Tue, 10 Nov 2020 16:09:44 +0000 (17:09 +0100)] 
Merge pull request #9698 from omoerbeek/namespace-rampage

namespaces.hh cleanup

4 years agoMerge pull request #9696 from rgacogne/rec-fakeaaa-cname-loop
Remi Gacogne [Tue, 10 Nov 2020 15:31:21 +0000 (16:31 +0100)] 
Merge pull request #9696 from rgacogne/rec-fakeaaa-cname-loop

rec: Avoid a CNAME loop detection issue with DNS64

4 years agoAllow setting a fake-ish version number when building release images 9700/head
Pieter Lexis [Tue, 10 Nov 2020 13:56:17 +0000 (14:56 +0100)] 
Allow setting a fake-ish version number when building release images

4 years agoMerge pull request #8608 from criteo-forks/custom_placeholder
Peter van Dijk [Tue, 10 Nov 2020 13:18:26 +0000 (14:18 +0100)] 
Merge pull request #8608 from criteo-forks/custom_placeholder

geoipbackend: accept custom lookup mapping

4 years agorec: do not send overly long NOD lookups 9697/head
Peter van Dijk [Tue, 10 Nov 2020 10:56:52 +0000 (11:56 +0100)] 
rec: do not send overly long NOD lookups

4 years agoUnscoped tie should come from boost for now 9698/head
Otto Moerbeek [Mon, 9 Nov 2020 13:46:46 +0000 (14:46 +0100)] 
Unscoped tie should come from boost for now

4 years agoKeep on using boost::tuple, switching to std::tuple introduces
Otto Moerbeek [Wed, 4 Nov 2020 13:09:19 +0000 (14:09 +0100)] 
Keep on using boost::tuple, switching to std::tuple introduces
a few issues.

4 years agoInclude less in namespaces.hh and use more std::;
Otto Moerbeek [Tue, 3 Nov 2020 13:55:25 +0000 (14:55 +0100)] 
Include less in namespaces.hh and use more std::;
boost stuff now needs explicit scoping.

4 years agoMerge pull request #9694 from pieterlexis/docker-improvements
Peter van Dijk [Tue, 10 Nov 2020 12:07:54 +0000 (13:07 +0100)] 
Merge pull request #9694 from pieterlexis/docker-improvements

Several docker image improvements

4 years agorec: Add a regression test for the DNS64 CNAME loop detection issue 9696/head
Remi Gacogne [Tue, 10 Nov 2020 10:16:43 +0000 (11:16 +0100)] 
rec: Add a regression test for the DNS64 CNAME loop detection issue

4 years agorec: Avoid a CNAME loop detection issue with DNS64
Remi Gacogne [Tue, 10 Nov 2020 10:15:02 +0000 (11:15 +0100)] 
rec: Avoid a CNAME loop detection issue with DNS64

When the requested qname is a CNAME to a second CNAME, the CNAME
loop detection might get incorrectly triggered because the CNAMEs
were already present in the vector of result records.

4 years agoMerge pull request #9630 from omoerbeek/rec-protozero
Otto Moerbeek [Tue, 10 Nov 2020 09:44:52 +0000 (10:44 +0100)] 
Merge pull request #9630 from omoerbeek/rec-protozero

Rec: start using protozero to create protobuf messages

4 years agoMerge pull request #9689 from rgacogne/ddist-fix-ebpf-long-names
Remi Gacogne [Tue, 10 Nov 2020 08:35:59 +0000 (09:35 +0100)] 
Merge pull request #9689 from rgacogne/ddist-fix-ebpf-long-names

dnsdist: Fix eBPF filtering of long qnames

4 years agoMerge pull request #9676 from rgacogne/dnsdist-lua-web-hooks
Remi Gacogne [Tue, 10 Nov 2020 08:34:46 +0000 (09:34 +0100)] 
Merge pull request #9676 from rgacogne/dnsdist-lua-web-hooks

dnsdist: Implement Lua custom web endpoints

4 years agoMerge pull request #9677 from rgacogne/ddist-log-tcp-size
Remi Gacogne [Tue, 10 Nov 2020 08:33:32 +0000 (09:33 +0100)] 
Merge pull request #9677 from rgacogne/ddist-log-tcp-size

dnsdist: Add the query payload size to the verbose log over TCP

4 years agoMerge pull request #9678 from rgacogne/ddist-htmlfiles-dep
Remi Gacogne [Tue, 10 Nov 2020 08:28:45 +0000 (09:28 +0100)] 
Merge pull request #9678 from rgacogne/ddist-htmlfiles-dep

dnsdist: Add incfiles as a dependency to htmlfiles.h

4 years agoMerge pull request #9686 from omoerbeek/rec-x-our-latency-is-gauge
Otto Moerbeek [Tue, 10 Nov 2020 08:18:55 +0000 (09:18 +0100)] 
Merge pull request #9686 from omoerbeek/rec-x-our-latency-is-gauge

rec: x-our-latency is a gauge

4 years agoDo not access pbData members if pbData is boost::none, spotted by @rgacogne 9630/head
Otto Moerbeek [Mon, 9 Nov 2020 15:59:44 +0000 (16:59 +0100)] 
Do not access pbData members if pbData is boost::none, spotted by @rgacogne

4 years agoSort sources
Otto Moerbeek [Fri, 30 Oct 2020 13:05:09 +0000 (14:05 +0100)] 
Sort sources

4 years agoEmbedding the Message in an optional is not working properly,
Otto Moerbeek [Fri, 30 Oct 2020 10:20:36 +0000 (11:20 +0100)] 
Embedding the Message in an optional is not working properly,
somewhere move or copy semantics are violated.

To avoid heap allocatiom, move the a scheme where we always have a
Message. Later we can change the buffers to be thead-local as well.

4 years agoFix reserve botch, as noted by @rgacogne
Otto Moerbeek [Fri, 30 Oct 2020 09:10:43 +0000 (10:10 +0100)] 
Fix reserve botch, as noted by @rgacogne

4 years agoSuggestions by @rgacogne
Otto Moerbeek [Fri, 30 Oct 2020 08:33:00 +0000 (09:33 +0100)] 
Suggestions by @rgacogne

4 years agoUse move semantics for putting things in packetcache and
Otto Moerbeek [Fri, 23 Oct 2020 08:37:04 +0000 (10:37 +0200)] 
Use move semantics for putting things in packetcache and
tweak sizes to a better estimate, taking into account that the
final message will *include* the reponse part.

4 years agoSpelling
Otto Moerbeek [Wed, 21 Oct 2020 14:57:33 +0000 (16:57 +0200)] 
Spelling

4 years agoAdd a comment: should we add the udr flag if !udrEnabled?
Otto Moerbeek [Wed, 21 Oct 2020 10:17:30 +0000 (12:17 +0200)] 
Add a comment: should we add the udr flag if !udrEnabled?

4 years agoPrint appliedPolicyTrigger and appliedPolicyHit
Otto Moerbeek [Wed, 21 Oct 2020 10:16:00 +0000 (12:16 +0200)] 
Print appliedPolicyTrigger and appliedPolicyHit

4 years agoHandle NOD flag in rr data
Otto Moerbeek [Wed, 21 Oct 2020 07:36:30 +0000 (09:36 +0200)] 
Handle NOD flag in rr data

4 years agoAdapt the regression test to allow absense of deviceName etc.
Otto Moerbeek [Tue, 20 Oct 2020 12:11:31 +0000 (14:11 +0200)] 
Adapt the regression test to allow absense of deviceName etc.

Checked with Wojas that this should be allowed. No use including fields that
have as value the empty string.

4 years agoSave two pieces of protbuf string in the cache to allow
Otto Moerbeek [Tue, 20 Oct 2020 09:11:49 +0000 (11:11 +0200)] 
Save two pieces of protbuf string in the cache to allow
for mod of the response object.

TODO: NOD stuff, tagging, checking of the taggedOnly flag

4 years agoThings are starting to work, but I'll need to split the cached
Otto Moerbeek [Tue, 13 Oct 2020 15:21:20 +0000 (17:21 +0200)] 
Things are starting to work, but I'll need to split the cached
protobuf strings to allow for mod of the response.

4 years agoMerge pull request #9667 from Habbie/docker-readme
Peter van Dijk [Tue, 10 Nov 2020 08:16:50 +0000 (09:16 +0100)] 
Merge pull request #9667 from Habbie/docker-readme

docker: add README