]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix eBPF filtering of long qnames 9717/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 9 Nov 2020 13:46:08 +0000 (14:46 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 13 Nov 2020 08:25:40 +0000 (09:25 +0100)
commit759309e81c38cedd26e84a2d75c538f88313700f
tree8a763b21c24c25c9b30ccb7820761273f07fd930
parent8659ac971680b67c954be36e0242978f00136936
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 :-)

(cherry picked from commit abbc72876eabc7a1745f50e7a9ff4c41b4bbef62)
pdns/bpf-filter.ebpf.src
pdns/bpf-filter.main.ebpf