David Anderson
99cc04c381
Clean up more lint errors.
...
Also remove the 'vetshadow' linter, it's overly noisy on normal code.
2018-02-05 21:09:02 -08:00
David Anderson
31095fd432
Gofmt -s the code.
2018-02-05 21:09:02 -08:00
David Anderson
39b02f723b
tftp: move the "Listening on" log message to only show when using ListenAndServe.
2016-08-15 21:34:33 -07:00
David Anderson
551e4aee91
Support the tsize extension for TFTP.
...
It turns out many PXE firmwares request tsize to size the download
buffer, and will refuse to download at all if the server cannot
provide a tsize.
This unfortunately breaks API compatibility to add a size parameter,
but I think it's an unfortunate necessity to make this work.
2016-08-08 20:41:12 -07:00
David Anderson
bd7be1a19a
Enable custom import paths.
2016-03-24 13:12:10 -07:00
David Anderson
576e70e92c
Add copyright/license headers to source.
2016-03-05 15:14:52 -08:00
David Anderson
90c89c2bd7
Implement the documented default listening behavior for TFTP.
2016-02-27 16:35:03 -08:00
David Anderson
7f4b62d890
Drop the retransmit timeout on the lossy connection test.
...
Since this is a test to localhost, a 10ms RTO is more than enough,
and speeds up the test 10x.
2016-02-18 09:36:19 -08:00
David Anderson
af8e62003b
Implement a read-only TFTP server.
...
Testing is done against the atftp client.
2016-02-18 00:41:31 -08:00