Lines Matching +full:max +full:- +full:by +full:- +full:define
2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
33 #define TFTPC_H
43 #define TFTP_NULL_UINT32 ((u32_t)0xffffffffUL)
45 #define TFTP_NULL_INT32 (-1)
54 * This Enum is used to specify the transfer mode of the file to be handled by TFTP client.
63 * This Enum is used to specify the transfer mode to be handled by TFTP client
70 TFTPC_SELECT_ERROR = 3, /**< Error returned by select() system call. */
75 /**< This is the error sent by the server when host name cannot be resolved. */
83 /**< File size limit crossed, Max block can be 0xFFFF, each block containing 512 bytes. */
100 TFTPC_TIMEOUT_ERROR = 23, /**< Max time expired while waiting for file to be received. */
104 TFTPC_ERROR_NOT_DEFINED = 25, /**< Returned by TFTP server for protocol user error. */
106 TFTPC_UNKNOWN_TRANSFER_ID = 27, /**< Returned by TFTP server for undefined transfer ID. */
108 /**< IOCTL function failed at TFTP client while setting the socket to non-block. */
135 #define TFTPC_MAX_SEND_REQ_ATTEMPTS 5 /* tftp max attempts */
139 #define TFTPC_TIMEOUT_PERIOD 5 /* tftp timeout period,unit :s */
142 #define TFTPC_SERVER_PORT 69 /* tftp server well known port no. */
144 /* MAX file size in TFTP is 32 MB.
146 receive the complete MAX message from the network
148 #define TFTPC_MAX_WAIT_IN_LOOP 75
150 #define TFTP_BLKSIZE 512 /* data block size (IEN-133) */
151 #define TFTP_HDRSIZE 4 /* TFTP header size */
152 #define TFTP_PKTSIZE (TFTP_BLKSIZE + TFTP_HDRSIZE) /* Packet size */
153 #define TFTP_MAX_MODE_SIZE 9 /* max size of mode string */
154 #define TFTP_MAXERRSTRSIZE 100 /* max size of error message string */
155 #define TFTP_MAX_PATH_LENGTH 256 /* Max path or filename length */
156 #define TFTP_MAX_BLK_NUM (0xFFFFL) /* MAximum block number */
159 #define TFTPC_IP_ADDR_MIN 0x01000000
160 #define TFTPC_IP_ADDR_EX_RESV 0x7effffff
161 #define TFTPC_IP_ADDR_CLASS_B 0x80000000
162 #define TFTPC_IP_ADDR_EX_CLASS_DE 0xdfffffff
164 #define TFTPC_FOUR 4 /* minimum packet size */
290 * 1.You must define TFTP_TO_RAWMEM when using this API. \n