28 RCSIDH(tftp_h,
"$Id: 3b323f24f463f53855b91bdfcc9da3a2365f0ab5 $")
34 #include <freeradius-devel/protocol/tftp/freeradius.internal.h>
35 #include <freeradius-devel/protocol/tftp/rfc1350.h>
37 #include <freeradius-devel/util/dbuff.h>
39 #define FR_TFTP_MAX_CODE (FR_PACKET_TYPE_VALUE_DO_NOT_RESPOND+1)
40 #define FR_TFTP_MAX_ERROR_CODE (FR_ERROR_CODE_VALUE_NO_SUCH_USER+1)
41 #define FR_TFTP_HDR_LEN (4)
62 #define FR_TFTP_DEFAULT_BLOCK_SIZE 1024
72 #define FR_TFTP_BLOCK_MIN_SIZE 8
73 #define FR_TFTP_BLOCK_MAX_SIZE 65464
80 #define FR_TFTP_MAX_FILESIZE (FR_TFTP_BLOCK_MAX_SIZE * FR_TFTP_BLOCK_MAX_SIZE)
char const * fr_tftp_error_codes[FR_TFTP_MAX_ERROR_CODE]
char const * fr_tftp_codes[FR_TFTP_MAX_CODE]
int fr_tftp_global_init(void)
ssize_t fr_tftp_encode(fr_dbuff_t *dbuff, fr_pair_list_t *vps))
int fr_tftp_decode(TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len))
void fr_tftp_global_free(void)
#define FR_TFTP_MAX_ERROR_CODE
static size_t char ** out