27 RCSID(
"$Id: ca66b3b60cd49ac9f8018242acf907e48bf043cc $")
29 #include <freeradius-devel/util/pair.h>
72 [FR_PACKET_TYPE_VALUE_READ_REQUEST] =
"Read-Request",
73 [FR_PACKET_TYPE_VALUE_WRITE_REQUEST] =
"Write-Request",
74 [FR_PACKET_TYPE_VALUE_DATA] =
"Data",
75 [FR_PACKET_TYPE_VALUE_ACKNOWLEDGEMENT] =
"Acknowledgement",
76 [FR_PACKET_TYPE_VALUE_ERROR] =
"Error",
77 [FR_PACKET_TYPE_VALUE_DO_NOT_RESPOND] =
"Do-Not-Respond"
81 [FR_ERROR_CODE_VALUE_FILE_NOT_FOUND] =
"File not found",
82 [FR_ERROR_CODE_VALUE_ACCESS_VIOLATION] =
"Access violation",
83 [FR_ERROR_CODE_VALUE_DISK_FULL] =
"Disk Full",
84 [FR_ERROR_CODE_VALUE_ILLEGAL_OPERATION] =
"Illegal TFTP operation",
85 [FR_ERROR_CODE_VALUE_UNKNOWN_TRANSFER_ID] =
"Unknown transfer ID",
86 [FR_ERROR_CODE_VALUE_FILE_ALREADY_EXISTS] =
"File already exists",
87 [FR_ERROR_CODE_VALUE_NO_SUCH_USER] =
"No such user"
#define fr_dict_autofree(_to_free)
fr_dict_attr_t const ** out
Where to write a pointer to the resolved fr_dict_attr_t.
fr_dict_t const ** out
Where to write a pointer to the loaded/resolved fr_dict_t.
int fr_dict_attr_autoload(fr_dict_attr_autoload_t const *to_load)
Process a dict_attr_autoload element to load/verify a dictionary attribute.
#define fr_dict_autoload(_to_load)
Specifies an attribute which must be present for the module to function.
Specifies a dictionary which must be loaded/loadable for the module to function.
fr_dict_attr_t const * attr_packet_type
@ FR_TYPE_STRING
String of printable characters.
@ FR_TYPE_UINT16
16 Bit unsigned integer.
@ FR_TYPE_UINT8
8 Bit unsigned integer.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
@ FR_TYPE_OCTETS
Raw octets.
fr_dict_autoload_t libfreeradius_tftp[]
fr_dict_attr_t const * attr_tftp_mode
char const * fr_tftp_error_codes[FR_TFTP_MAX_ERROR_CODE]
static uint32_t instance_count
fr_dict_attr_t const * attr_tftp_opcode
fr_dict_attr_t const * attr_tftp_error_message
char const * fr_tftp_codes[FR_TFTP_MAX_CODE]
int fr_tftp_global_init(void)
fr_dict_attr_t const * attr_tftp_filename
fr_dict_attr_t const * attr_tftp_block
fr_dict_attr_t const * attr_tftp_data
fr_dict_t const * dict_tftp
fr_dict_attr_autoload_t libfreeradius_tftp_dict_attr[]
fr_dict_attr_t const * attr_tftp_block_size
void fr_tftp_global_free(void)
fr_dict_attr_t const * attr_tftp_error_code
Functions to encode/decode TFTP packets.
#define FR_TFTP_MAX_ERROR_CODE