iPXE
|
TFTP protocol. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | tftp_rrq |
A TFTP read request (RRQ) packet. More... | |
struct | tftp_data |
A TFTP data (DATA) packet. More... | |
struct | tftp_ack |
A TFTP acknowledgement (ACK) packet. More... | |
struct | tftp_error |
A TFTP error (ERROR) packet. More... | |
struct | tftp_oack |
A TFTP options acknowledgement (OACK) packet. More... | |
struct | tftp_common |
The common header of all TFTP packets. More... | |
union | tftp_any |
A union encapsulating all TFTP packet types. More... | |
Macros | |
#define | TFTP_PORT 69 |
Default TFTP server port. More... | |
#define | TFTP_DEFAULT_BLKSIZE 512 |
Default TFTP data block size. More... | |
#define | TFTP_MAX_BLKSIZE 1432 |
#define | TFTP_RRQ 1 |
Read request opcode. More... | |
#define | TFTP_WRQ 2 |
Write request opcode. More... | |
#define | TFTP_DATA 3 |
Data block opcode. More... | |
#define | TFTP_ACK 4 |
Data block acknowledgement opcode. More... | |
#define | TFTP_ERROR 5 |
Error opcode. More... | |
#define | TFTP_OACK 6 |
Options acknowledgement opcode. More... | |
#define | TFTP_ERR_FILE_NOT_FOUND 1 |
File not found. More... | |
#define | TFTP_ERR_ACCESS_DENIED 2 |
Access violation. More... | |
#define | TFTP_ERR_DISK_FULL 3 |
Disk full or allocation exceeded. More... | |
#define | TFTP_ERR_ILLEGAL_OP 4 |
Illegal TFTP operation. More... | |
#define | TFTP_ERR_UNKNOWN_TID 5 |
Unknown transfer ID. More... | |
#define | TFTP_ERR_FILE_EXISTS 6 |
File already exists. More... | |
#define | TFTP_ERR_UNKNOWN_USER 7 |
No such user. More... | |
#define | TFTP_ERR_BAD_OPTS 8 |
Option negotiation failed. More... | |
#define | MTFTP_PORT 1759 |
Default MTFTP server port. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
struct tftp_rrq | __attribute__ ((packed)) |
Variables | |
uint16_t | opcode |
char | data [0] |
uint16_t | block |
uint16_t | errcode |
char | errmsg [0] |
union tftp_any | __attribute__ |
TFTP protocol.
Definition in file tftp.h.
#define TFTP_DEFAULT_BLKSIZE 512 |
#define TFTP_ERR_DISK_FULL 3 |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
struct tftp_rrq __attribute__ | ( | (packed) | ) |
uint16_t block |
Definition at line 12 of file tftp.h.
Referenced by alloc_memblock(), ar9300_uncompress_block(), ata_open(), atadev_command(), atadev_read(), atadev_read_capacity(), atadev_write(), block_translate(), check_blocks(), cms_digest(), efi_block_boot_image(), efi_block_connect(), efi_block_hook(), efi_block_io_flush(), efi_block_io_read(), efi_block_io_reset(), efi_block_io_write(), efi_block_rw(), efi_block_unhook(), efi_nullify_block(), free_memblock(), ib_srp_open(), mlx_memory_set(), mlx_memory_set_priv(), pbkdf2_sha1_f(), peerblk_open(), peerdist_info_block(), peerdist_info_block_okx(), peerdist_info_test_exec(), peerdist_info_v1_block(), peerdist_info_v2_block(), peermux_step(), phantom_crb_access_2m(), scsi_open(), scsidev_command(), scsidev_read(), scsidev_read_capacity(), scsidev_test_unit_ready(), scsidev_write(), srp_open(), tftp_rx_data(), tftp_send_ack(), valgrind_make_blocks_defined(), valgrind_make_blocks_noaccess(), and vxge_hw_ring_replenish().
uint16_t errcode |
Definition at line 12 of file tftp.h.
Referenced by tftp_errcode_to_rc(), and tftp_send_error().
char errmsg[0] |
Definition at line 13 of file tftp.h.
Referenced by tftp_send_error().
union tftp_any __attribute__ |