From: Remi Gacogne Date: Mon, 17 Nov 2025 11:16:20 +0000 (+0100) Subject: dnsdist: Fix a bug when rewriting an IPv6 XSK packet X-Git-Tag: rec-5.4.0-alpha1~22^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98178e50f479a47895917b432c2a96da3219a889;p=thirdparty%2Fpdns.git dnsdist: Fix a bug when rewriting an IPv6 XSK packet The header was not properly set. Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/xsk.cc b/pdns/dnsdistdist/xsk.cc index 6689335a28..9a50cdb160 100644 --- a/pdns/dnsdistdist/xsk.cc +++ b/pdns/dnsdistdist/xsk.cc @@ -973,6 +973,7 @@ void XskPacket::rewrite() noexcept // do not bother setting the UDP checksum: 0 is a valid value and most AF_XDP // implementations do the same // udpHeader.check = tcp_udp_v6_checksum(&ipHeader); + rewriteIpv6Header(&ipHeader, getFrameLen()); setIPv6Header(ipHeader); setUDPHeader(udpHeader); }