Skip to content

Instantly share code, notes, and snippets.

@chrisa
Created September 5, 2011 09:59
Show Gist options
  • Select an option

  • Save chrisa/1194605 to your computer and use it in GitHub Desktop.

Select an option

Save chrisa/1194605 to your computer and use it in GitHub Desktop.
RFC 2347 OPTION NEGOTIATION
This version of tftpd supports RFC 2347 option negotiation. Currently
implemented options are:
blksize (RFC 2348)
Set the transfer block size to anything less than or equal to the
specified option. This version of tftpd can support any block size
up to the theoretical maximum of 65464 bytes.
blksize2 (nonstandard)
Set the transfer block size to anything less than or equal to the
specified option, but restrict the possible responses to powers of
2. The maximum is 32768 bytes (the largest power of 2 less than or
equal to 65464.)
tsize (RFC 2349)
Report the size of the file that is about to be transferred. This
version of tftpd only supports the tsize option for binary (octet)
mode transfers.
timeout (RFC 2349)
Set the time before the server retransmits a packet, in seconds.
utimeout (nonstandard)
Set the time before the server retransmits a packet, in microsec-
onds.
The --refuse option can be used to disable specific options; this may be
necessary to work around bugs in specific TFTP client implementations.
For example, some TFTP clients have been found to request the blksize
option, but crash with an error if they actually get the option accepted
by the server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment