Lines Matching +full:512 +full:- +full:byte
4 * SPDX-License-Identifier: Apache-2.0
29 * RFC1350: the file is sent in fixed length blocks of 512 bytes.
32 * A data packet of less than 512 bytes signals termination of a transfer.
34 #define TFTP_BLOCK_SIZE 512
37 * RFC1350: For non-request TFTP message, the header contains 2-byte operation
38 * code plus 2-byte block number or error code.
50 #define TFTPC_DUPLICATE_DATA -1 /**< Duplicate data received. */
51 #define TFTPC_BUFFER_OVERFLOW -2 /**< User buffer is too small. */
52 #define TFTPC_UNKNOWN_FAILURE -3 /**< Unknown failure. */
53 #define TFTPC_REMOTE_ERROR -4 /**< Remote server error. */
54 #define TFTPC_RETRIES_EXHAUSTED -5 /**< Retries exhausted. */
151 * @retval -EINVAL if `client` is NULL.
171 * @retval -EINVAL if `client` or `user_buf` is NULL or if `user_buf_size` is zero.