RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Data Fields
tftp_options Struct Reference

This structure represents TFTP options negotiated between client and server. More...

#include <tftp.h>

Data Fields

uint16_t block_size
 This member represents the desired size of a data block.
 
uint16_t window_size
 This member represents the desired size of a window.
 

Detailed Description

This structure represents TFTP options negotiated between client and server.

RFC 2347 is the basis for the TFTP option.

Field Documentation

◆ block_size

uint16_t tftp_options::block_size

This member represents the desired size of a data block.

The TFTP blocksize option is introduced in RFC 2348. It defines the number of octets in the data packets transferred. Valid values range between 8 and 65464 octets, inclusive. Values larger than 1468 may cause packet fragmentation over standard Ethernet. A value of 512 will prevent this option from being sent to the server.

The default value is 1456.

◆ window_size

uint16_t tftp_options::window_size

This member represents the desired size of a window.

The TFTP windowsize option is introduced in RFC 7440. It defines the number of data packets send before the receiver must send an acknowledgment packet. Valid values range between 1 and 65535 packets, inclusive. Simple TFTP servers usually do not support this option. This option may negatively contribute to network congestion. This can be avoided by using a window size of 1. A value of 1 will prevent this option from being sent to the server.

The default value is 8.


The documentation for this struct was generated from the following file: