Home
last modified time | relevance | path

Searched refs:TFTP_BLKSIZE (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/apps/tftp/include/
Dtftpc.h150 #define TFTP_BLKSIZE 512 /* data block size (IEN-133) */ macro
152 #define TFTP_PKTSIZE (TFTP_BLKSIZE + TFTP_HDRSIZE) /* Packet size */
172 u8_t ucDataBuf[TFTP_BLKSIZE]; /* Actual data */
/kernel/liteos_a/apps/tftp/src/
Dtftpc.c796 if (ulRecvSize > TFTP_BLKSIZE) { in lwip_tftp_get_file_by_filename()
829 if (ulRecvSize != TFTP_BLKSIZE) { in lwip_tftp_get_file_by_filename()
969 if (buffer.st_size >= (off_t)(TFTP_MAX_BLK_NUM * TFTP_BLKSIZE)) { in lwip_tftp_put_file_by_filename()
1062 pucBuffer = mem_malloc(TFTP_BLKSIZE); in lwip_tftp_put_file_by_filename()
1075 (void)memset_s((void *)pucBuffer, TFTP_BLKSIZE, 0, TFTP_BLKSIZE); in lwip_tftp_put_file_by_filename()
1092 iErrCode = read(fp, pucBuffer, TFTP_BLKSIZE); in lwip_tftp_put_file_by_filename()
1135 if (memcpy_s((void *)pstSendBuf->u.stTFTP_Data.ucDataBuf, TFTP_BLKSIZE, in lwip_tftp_put_file_by_filename()
1145 … if ((ulErrCode != ERR_OK) || (memset_s((void *)pucBuffer, TFTP_BLKSIZE, 0, TFTP_BLKSIZE) != 0)) { in lwip_tftp_put_file_by_filename()
1153 iErrCode = read(fp, pucBuffer, TFTP_BLKSIZE); in lwip_tftp_put_file_by_filename()
1177 } while (ulSize == (TFTP_BLKSIZE + TFTP_HDRSIZE)); in lwip_tftp_put_file_by_filename()
[all …]