Searched refs:TFTP_HEADER_SIZE (Results 1 – 2 of 2) sorted by relevance
63 LOG_DBG("Client send data: block no %u, size %u", block_no, data_size + TFTP_HEADER_SIZE); in send_data()74 memcpy(client->tftp_buf + TFTP_HEADER_SIZE, data_buffer, data_size); in send_data()76 ret = zsock_send(sock, client->tftp_buf, data_size + TFTP_HEADER_SIZE, 0); in send_data()102 if (ret != TFTP_HEADER_SIZE) { in send_data()124 evt.param.error.msg = client->tftp_buf + TFTP_HEADER_SIZE; in send_data()224 if (ret < TFTP_HEADER_SIZE) { in send_request()271 while (rcv_size >= TFTP_HEADER_SIZE && rcv_size <= TFTPC_MAX_BUF_SIZE) { in tftp_get()285 evt.param.error.msg = client->tftp_buf + TFTP_HEADER_SIZE; in tftp_get()298 uint32_t data_size = rcv_size - TFTP_HEADER_SIZE; in tftp_get()319 evt.param.data.data_ptr = client->tftp_buf + TFTP_HEADER_SIZE; in tftp_get()[all …]
40 #define TFTP_HEADER_SIZE 4 macro43 #define TFTPC_MAX_BUF_SIZE (TFTP_BLOCK_SIZE + TFTP_HEADER_SIZE)