~bitfehler/hare-tftp

net::tftp for Hare

b298771 Gracefully handle the more obvious errors

2 months ago

cafaad4 Implement support for netascii encoding

2 months ago

#hare-tftp

This packages provides net::tftp for TFTP support.

#Status

Currently, all primitives defined in RFC 1350 (TFTP protocol, revision 2) are supported.

A sample client is provided that can successfully read a file from or write a file to a remote server (requires hare-ev).

Support for additional RFCs might be added in the future: RFC 1782, RFC 1783, RFC 1784, RFC 1785, RFC 2347, RFC 2348, RFC 2349.

#Client usage

./client: non-interactive TFTP client

Usage: ./client [-h]
	 [-m <mode>]
	 [-p <port>]
	 [-r <filename>]
	 [-s <server>]
	 [-w <filename>]
	 [file]

-h: print this help text
-m <mode>: transfer mode (octet or netascii, default: octet)
-p <port>: server port (default: 69)
-r <filename>: read file from server
-s <server>: server name or address
-w <filename>: write file to server

Either -r or -w must be specified. If file is provided, it is used as input when writing or as output when reading. If not provided, input defaults to stdin and output to stdout.

#Contact

Patches, feedback, or questions can be directed to my public inbox: ~bitfehler/public-inbox@lists.sr.ht