Page MenuHomeFreeBSD

loader: tftp: Don't error on tftp error 0
ClosedPublic

Authored by manu on Dec 13 2021, 10:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 19, 7:48 PM
Unknown Object (File)
Dec 11 2024, 11:15 AM
Unknown Object (File)
Nov 21 2024, 6:42 AM
Unknown Object (File)
Oct 29 2024, 8:59 PM
Unknown Object (File)
Sep 28 2024, 3:53 AM
Unknown Object (File)
Sep 10 2024, 12:57 PM
Unknown Object (File)
Sep 6 2024, 8:33 AM
Unknown Object (File)
Sep 5 2024, 10:11 AM

Details

Summary

tftp-hpa sends NAK with tftp error set to 0 when trying to get
a directory and this is the first thing that loader tries to do
and this make it hangs.

MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43307
Build 40195: arc lint + arc unit

Event Timeline

manu requested review of this revision.Dec 13 2021, 10:45 AM
stand/libsa/tftp.c
249

So what happens if we get a NAK during a normal transfer of a file?

stand/libsa/tftp.c
249

I don't think it can happens tbh ...

imp added inline comments.
stand/libsa/tftp.c
249

OK Just wondering the blast radius of this change outside of the problem you're trying to fix. If we don't have something specific, then I'm no objection.

This revision is now accepted and ready to land.Dec 14 2021, 5:34 PM
tsoome added a subscriber: tsoome.

I haven't seen any wrong happening from it either.

This revision was automatically updated to reflect the committed changes.