]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: tftp: Don't let tftp timeout
authorEmmanuel Vadot <manu@FreeBSD.org>
Mon, 13 Dec 2021 09:35:23 +0000 (10:35 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Thu, 13 Jan 2022 07:55:51 +0000 (08:55 +0100)
commite3ef89ba96730180f55b9fc6af4c29e1482b9ac6
tree41161ea66f7a0729b50a98762a540a025a2692d7
parent0078d54c0985a41ef172022bb9880cf751982f8b
loader: tftp: Don't let tftp timeout

When we load a kernel or module we open/close it a few times.
Since we're using the same port number each time and that we requested
the same file the ACK that we send are valid on the server side and the
server send us the file multiple times.
This makes tftp loading time very inconsistant due to the UDP "flood" that
we have to process.

Reviewed by: imp, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33407

(cherry picked from commit 4f36ed513cc8fc3fe780b23ecda8cb1fdc6edf7d)
stand/libsa/tftp.c