On Sun, Dec 07, 2025 at 12:09:57AM +0100, Joerg Dorchain via Syslinux
wrote:>
> I'd also be happy to do further testing if you do not have a
> raspi to reproduce.
Well, I did meanwhile.
After staring at pcaps for a while and comparing bits, I ended
up at commit 340d4b66512ae57a44e28bdcf15b1c051c3d35e0 Fix remap,
add remap test mode that introduced this regression.
From looking at it, I would guess that it affects all situations
where a tftp client requests a non-existant file in the normal
course of requests, i.e. it not only affects raspberries.
Please consider including the attached patch.
Bye,
Joerg
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index e2a52ad..b8ba8a4 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -1910,6 +1910,7 @@ static void nak(int error, const char *msg)
msg = "Request failed";
tp = (struct tftphdr *)buf;
+ tp->th_opcode = htons((u_short) ERROR);
tp->th_code = htons((u_short) error);
length = strlen(msg) + 1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: not available
URL:
<https://lists.syslinux.org/archives/syslinux/attachments/20251208/0f3d4922/attachment.sig>