]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix eBPF filtering of long qnames 9689/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 9 Nov 2020 13:46:08 +0000 (14:46 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 9 Nov 2020 13:46:08 +0000 (14:46 +0100)
commitabbc72876eabc7a1745f50e7a9ff4c41b4bbef62
tree19059b131f4aac34e68c9daebfe513597bc72e7f
parent8fb409bf7b0417f18d2d555f3148b6e2a38d85e2
dnsdist: Fix eBPF filtering of long qnames

This commit switches to the use of eBPF positive offsets to access
the content of the transport and application layers, since using
negative offsets (needed to access the other layers) led to issues
with long qnames.
This is cleaner anyway :-)
pdns/bpf-filter.ebpf.src
pdns/bpf-filter.main.ebpf