Definitions common to TFTP client and server. More...
#include "core/net.h"
Go to the source code of this file.
Macros | |
#define | TFTP_PORT 69 |
Enumerations | |
enum | TftpOpcode { TFTP_OPCODE_RRQ = 1, TFTP_OPCODE_WRQ = 2, TFTP_OPCODE_DATA = 3, TFTP_OPCODE_ACK = 4, TFTP_OPCODE_ERROR = 5, TFTP_OPCODE_OACK = 6 } |
TFTP opcodes. More... | |
enum | TftpErrorCode { TFTP_ERROR_NOT_DEFINED = 0, TFTP_ERROR_FILE_NOT_FOUND = 1, TFTP_ERROR_ACCESS_VIOLATION = 2, TFTP_ERROR_DISK_FULL = 3, TFTP_ERROR_ILLEGAL_OPERATION = 4, TFTP_ERROR_UNKNOWN_TID = 5, TFTP_ERROR_FILE_ALREADY_EXISTS = 6, TFTP_ERROR_NO_SUCH_USER = 7 } |
TFTP error codes. More... | |
Variables | |
typedef | __packed_struct |
Read request packet (RRQ) More... | |
char_t | filename [] |
TftpRrqPacket | |
TftpWrqPacket | |
uint16_t | block |
uint8_t | data [] |
TftpDataPacket | |
TftpAckPacket | |
uint16_t | errorCode |
char_t | errorMsg [] |
TftpErrorPacket | |
Detailed Description
Definitions common to TFTP client and server.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file tftp_common.h.
Macro Definition Documentation
◆ TFTP_PORT
#define TFTP_PORT 69 |
Definition at line 38 of file tftp_common.h.
Enumeration Type Documentation
◆ TftpErrorCode
enum TftpErrorCode |
TFTP error codes.
Definition at line 65 of file tftp_common.h.
◆ TftpOpcode
enum TftpOpcode |
TFTP opcodes.
Enumerator | |
---|---|
TFTP_OPCODE_RRQ | Read request. |
TFTP_OPCODE_WRQ | Write request. |
TFTP_OPCODE_DATA | Data. |
TFTP_OPCODE_ACK | Acknowledgment. |
TFTP_OPCODE_ERROR | Error. |
TFTP_OPCODE_OACK | Option acknowledgment. |
Definition at line 50 of file tftp_common.h.
Variable Documentation
◆ __packed_struct
typedef __packed_struct |
Read request packet (RRQ)
Error packet (ERROR)
Acknowledgment packet (ACK)
Data packet (DATA)
Write request packet (WRQ)
Definition at line 90 of file tftp_common.h.
◆ block
uint16_t block |
Definition at line 115 of file tftp_common.h.
◆ data
uint8_t data[] |
Definition at line 116 of file tftp_common.h.
◆ errorCode
uint16_t errorCode |
Definition at line 138 of file tftp_common.h.
◆ errorMsg
char_t errorMsg[] |
Definition at line 139 of file tftp_common.h.
◆ filename
char_t filename |
Definition at line 93 of file tftp_common.h.
◆ TftpAckPacket
TftpAckPacket |
Definition at line 128 of file tftp_common.h.
◆ TftpDataPacket
TftpDataPacket |
Definition at line 117 of file tftp_common.h.
◆ TftpErrorPacket
TftpErrorPacket |
Definition at line 140 of file tftp_common.h.
◆ TftpRrqPacket
TftpRrqPacket |
Definition at line 94 of file tftp_common.h.
◆ TftpWrqPacket
TftpWrqPacket |
Definition at line 105 of file tftp_common.h.