]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix handling of large XSK frames 16242/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 7 Oct 2025 11:34:49 +0000 (13:34 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 10 Oct 2025 09:53:43 +0000 (11:53 +0200)
commite0eb6a798c02ccd0d613fff53b0e51560e0a9fba
treef7bf6d62d56a7c4024a5e6cb002eb6fde435594b
parent04a20603314a3835f38fb53709ab87ad7b948444
dnsdist: Fix handling of large XSK frames

There was a bug in the way we were computing the remaining capacity
of a XSK frame, because we forgot to account for the network headers.
This caused some XSK responses to be discarded by the kernel (`tx_invalid_descs`)
because there was not enough space left in the frame (less than
`XDP_PACKET_HEADROOM`).

Thanks to `ednaq` for reporting this via ou YesWeHack program.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/xsk.cc