Searched refs:TFTPC_MAX_BUF_SIZE (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/include/zephyr/net/ |
D | tftp.h | 43 #define TFTPC_MAX_BUF_SIZE (TFTP_BLOCK_SIZE + TFTP_HEADER_SIZE) macro 137 uint8_t tftp_buf[TFTPC_MAX_BUF_SIZE];
|
/Zephyr-latest/subsys/net/lib/tftp/ |
D | tftp_client.h | 25 #define TFTP_MAX_FILENAME_SIZE (TFTPC_MAX_BUF_SIZE - TFTP_MAX_MODE_SIZE - 4)
|
D | tftp_client.c | 96 ret = zsock_recv(sock, client->tftp_buf, TFTPC_MAX_BUF_SIZE, 0); in send_data() 222 ret = zsock_recvfrom(sock, client->tftp_buf, TFTPC_MAX_BUF_SIZE, 0, in send_request() 271 while (rcv_size >= TFTP_HEADER_SIZE && rcv_size <= TFTPC_MAX_BUF_SIZE) { in tftp_get() 329 if (rcv_size < TFTPC_MAX_BUF_SIZE) { in tftp_get() 359 ret = zsock_recv(sock, client->tftp_buf, TFTPC_MAX_BUF_SIZE, 0); in tftp_get() 363 if (!(rcv_size >= TFTP_HEADER_SIZE && rcv_size <= TFTPC_MAX_BUF_SIZE)) { in tftp_get()
|