Page MenuHomeFreeBSD

loader: tftp: Copy the first block into the cache
ClosedPublic

Authored by manu on Dec 30 2021, 8:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 2:04 AM
Unknown Object (File)
Thu, Oct 9, 10:16 PM
Unknown Object (File)
Thu, Oct 9, 10:15 PM
Unknown Object (File)
Thu, Oct 9, 10:15 PM
Unknown Object (File)
Thu, Oct 9, 6:54 PM
Unknown Object (File)
Mon, Sep 22, 2:26 PM
Unknown Object (File)
Sep 5 2025, 5:38 AM
Unknown Object (File)
Aug 8 2025, 8:31 PM

Details

Summary

tftp_open reads the first block so copy it in the cached data.
If we have more than one block (i.e. we called tftp_read before
tftp_preload) simply just reset the transfer.

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable