Lines Matching defs:pstSendBuf

65                                  TFTPC_PACKET_S *pstSendBuf);
68 TFTPC_PACKET_S *pstSendBuf,
77 static u32_t lwip_tftp_inner_put_file(s32_t iSockNum, TFTPC_PACKET_S *pstSendBuf,
82 struct sockaddr_in *pstServerAddr, TFTPC_PACKET_S *pstSendBuf);
170 struct sockaddr_in *pstServerAddr, TFTPC_PACKET_S *pstSendBuf)
212 pstServerAddr, pstSendBuf);
309 pstSendBuf: Packet to send
314 TFTPC_PACKET_S *pstSendBuf,
320 iRet = lwip_sendto(iSockNum, (s8_t *)pstSendBuf,
473 struct sockaddr_in *pstServerAddr, TFTPC_PACKET_S *pstSendBuf)
477 if (memset_s((void *)pstSendBuf, sizeof(TFTPC_PACKET_S), 0, sizeof(TFTPC_PACKET_S)) != 0) {
483 pstSendBuf->usOpcode = htons(usOpCode);
484 pstSendBuf->u.stTFTP_Err.usErrNum = htons((u16_t)ulError);
486 if (strncpy_s((char *)(pstSendBuf->u.stTFTP_Err.ucErrMesg), TFTP_MAXERRSTRSIZE,
491 pstSendBuf->u.stTFTP_Err.ucErrMesg[(TFTP_MAXERRSTRSIZE - 1)] = '\0';
496 pstSendBuf,
531 TFTPC_PACKET_S *pstSendBuf = NULL;
568 pstSendBuf = (TFTPC_PACKET_S *)mem_malloc(sizeof(TFTPC_PACKET_S));
569 if (pstSendBuf == NULL) {
575 mem_free(pstSendBuf);
581 mem_free(pstSendBuf);
587 (void)memset_s((void *)pstSendBuf, sizeof(TFTPC_PACKET_S), 0, sizeof(TFTPC_PACKET_S));
674 pstSendBuf);
676 pstSendBuf, &stServerAddr);
689 &ulIgnorePkt, &stServerAddr, pstSendBuf);
696 pstSendBuf, &stServerAddr);
735 &stServerAddr, pstSendBuf);
762 &stServerAddr, pstSendBuf);
778 pstSendBuf, &stServerAddr);
801 &stServerAddr, pstSendBuf);
815 pstSendBuf->usOpcode = htons(usReadReq);
816 pstSendBuf->u.usBlknum = htons((u16_t)ulCurrBlk);
830 (void)lwip_tftp_send_to_server(iSockNum, ulSize, pstSendBuf, &stServerAddr);
841 &stServerAddr, pstSendBuf);
861 pstSendBuf, &stServerAddr);
874 &stServerAddr, pstSendBuf);
894 &stServerAddr, pstSendBuf);
906 mem_free(pstSendBuf);
927 TFTPC_PACKET_S *pstSendBuf = NULL;
980 pstSendBuf = (TFTPC_PACKET_S *)mem_malloc(sizeof(TFTPC_PACKET_S));
981 if (pstSendBuf == NULL) {
986 (void)memset_s((void *)pstSendBuf, sizeof(TFTPC_PACKET_S), 0, sizeof(TFTPC_PACKET_S));
1038 pstSendBuf);
1041 pstSendBuf, &stServerAddr);
1050 ulErrCode = lwip_tftp_inner_put_file(iSockNum, pstSendBuf, ulSize,
1068 &stServerAddr, pstSendBuf);
1083 &stServerAddr, pstSendBuf);
1098 &stServerAddr, pstSendBuf);
1115 &stServerAddr, pstSendBuf);
1133 pstSendBuf->usOpcode = htons(usReadReq);
1134 pstSendBuf->u.stTFTP_Data.usBlknum = htons(usCurrBlk);
1135 if (memcpy_s((void *)pstSendBuf->u.stTFTP_Data.ucDataBuf, TFTP_BLKSIZE,
1144 pstSendBuf, &stServerAddr);
1157 &stServerAddr, pstSendBuf);
1167 ulErrCode = lwip_tftp_inner_put_file(iSockNum, pstSendBuf, ulSize,
1186 mem_free(pstSendBuf);
1192 pstSendBuf: Packet to send to server
1198 TFTPC_PACKET_S *pstSendBuf,
1237 pstServerAddr, pstSendBuf);
1244 pstSendBuf, pstServerAddr);
1273 pstServerAddr, pstSendBuf);
1345 pstServerAddr, pstSendBuf);
1368 pstServerAddr, pstSendBuf);
1401 pstServerAddr, pstSendBuf);
1450 TFTPC_PACKET_S *pstSendBuf = NULL;
1479 pstSendBuf = (TFTPC_PACKET_S *)mem_malloc(sizeof(TFTPC_PACKET_S));
1480 if (pstSendBuf == NULL) {
1486 mem_free(pstSendBuf);
1491 (void)memset_s((void *)pstSendBuf, sizeof(TFTPC_PACKET_S), 0, sizeof(TFTPC_PACKET_S));
1512 ulSize = (u32_t)lwip_tftp_make_tftp_packet(TFTPC_OP_RRQ, szSrcFileName, (u32_t)ucTftpTransMode, pstSendBuf);
1513 ulErrCode = lwip_tftp_send_to_server(iSockNum, ulSize, pstSendBuf, &stServerAddr);
1526 &stServerAddr, pstSendBuf);
1533 pstSendBuf, &stServerAddr);
1563 &stServerAddr, pstSendBuf);
1587 &stServerAddr, pstSendBuf);
1600 pstSendBuf, &stServerAddr);
1620 &stServerAddr, pstSendBuf);
1631 pstSendBuf->usOpcode = htons(usReadReq);
1632 pstSendBuf->u.usBlknum = htons((u16_t)ulCurrBlk);
1637 pstSendBuf, &stServerAddr);
1668 pstSendBuf, &stServerAddr);
1699 &stServerAddr, pstSendBuf);
1711 mem_free(pstSendBuf);