• Home
  • Raw
  • Download

Lines Matching full:packet

128 /* Function to create TFTP packet.
132 pstPacket - packet generated
133 Returns packet address on success
142 /* Request packet format is: in lwip_tftp_make_tftp_packet()
162 /* Function to recv a packet from server
165 pulIgnorePkt - Ignore packet flag
166 pstRecvBuf - received packet
167 pulSize - Size of the packet
184 /* wait for DATA packet */ in lwip_tftp_recv_from_server()
199 /* receive a packet from server */ in lwip_tftp_recv_from_server()
206 /* If received packet size < minimum packet size */ in lwip_tftp_recv_from_server()
208 /* Send Error packet to server */ in lwip_tftp_recv_from_server()
211 "Packet size < min size", in lwip_tftp_recv_from_server()
219 /* if this packet is ERROR packet */ in lwip_tftp_recv_from_server()
270 /* If received packet is first block of data(for get operation) or if in lwip_tftp_recv_from_server()
271 received packet is acknowledgment for write request (put operation) in lwip_tftp_recv_from_server()
277 /* If received packet from correct server */ in lwip_tftp_recv_from_server()
282 /* Received packet form wrong server. */ in lwip_tftp_recv_from_server()
284 … ("lwip_tftp_recv_from_server : Received 1st packet from wrong Server or unknown server\n")); in lwip_tftp_recv_from_server()
286 /* Set ignore packet flag */ in lwip_tftp_recv_from_server()
290 /* If not first packet, check if the received packet is from correct in lwip_tftp_recv_from_server()
294 /* Received packet form wrong server or wrong port.Ignore packet. */ in lwip_tftp_recv_from_server()
296 … ("lwip_tftp_recv_from_server : Received a packet from wrong Server or unknown server\n")); in lwip_tftp_recv_from_server()
298 /* Set ignore packet flag */ in lwip_tftp_recv_from_server()
306 /* Function to send a packet to server
308 ulSize: Size of the packet
309 pstSendBuf: Packet to send
319 /* Send packet to server */ in lwip_tftp_send_to_server()
324 /* Size of data sent not equal to size of packet */ in lwip_tftp_send_to_server()
333 * Get the data block from the received packet
335 * pulSize: Size of received packet,
336 pstRecvBuf - received packet
338 * @param Output pulResendPkt - Resend packet flag
380 /* Loop to get the last data packet from the receive buffer */ in lwip_tftp_validate_data_pkt()
414 /* If received packet size < minimum packet size */ in lwip_tftp_validate_data_pkt()
419 /* Check if the received packet is from correct server and from in lwip_tftp_validate_data_pkt()
424 /* resend ack packet */ in lwip_tftp_validate_data_pkt()
431 /* if this packet is not DATA packet */ in lwip_tftp_validate_data_pkt()
435 /* return from the function, incorrect packet received, in lwip_tftp_validate_data_pkt()
436 expected packet is data packet */ in lwip_tftp_validate_data_pkt()
441 /* if we now have the earlier data packet, then the host probably in lwip_tftp_validate_data_pkt()
442 never got our acknowledge packet, now we will send it again. */ in lwip_tftp_validate_data_pkt()
444 /* resend ack packet */ in lwip_tftp_validate_data_pkt()
466 /* Send an error packet to the server
526 u32_t ulResendPkt = 0; /*Resend the previous packet*/ in lwip_tftp_get_file_by_filename()
527 u32_t ulIgnorePkt = 0; /*Ignore received packet*/ in lwip_tftp_get_file_by_filename()
671 /* Make a request packet - TFTPC_OP_RRQ */ in lwip_tftp_get_file_by_filename()
694 /* Max attempts not reached. Resend packet */ in lwip_tftp_get_file_by_filename()
729 /* if this packet is unkonwn or incorrect packet */ in lwip_tftp_get_file_by_filename()
731 /* Send error packet to server */ in lwip_tftp_get_file_by_filename()
751 /* Validate received DATA packet. */ in lwip_tftp_get_file_by_filename()
757 /* Send Error packet to server */ in lwip_tftp_get_file_by_filename()
761 "Received unexpected packet", in lwip_tftp_get_file_by_filename()
773 /* Received previous data block again. Resend last packet */ in lwip_tftp_get_file_by_filename()
775 /* Now set ulResendPkt to 0 to send the last packet. */ in lwip_tftp_get_file_by_filename()
788 /* Continue in loop to send last packet again. */ in lwip_tftp_get_file_by_filename()
797 /* Send Error packet to server */ in lwip_tftp_get_file_by_filename()
800 "Packet size > max size", in lwip_tftp_get_file_by_filename()
808 LWIP_DEBUGF(TFTP_DEBUG, ("lwip_tftp_get_file_by_filename : Packet size > max size\n")); in lwip_tftp_get_file_by_filename()
832 /* If the received packet has only header and do not have payload, the return failure */ in lwip_tftp_get_file_by_filename()
834 /* Write the last packet to the file */ in lwip_tftp_get_file_by_filename()
884 /* form the ACK packet for the DATA packet received */ in lwip_tftp_get_file_by_filename()
885 /* Go to the next packet no. */ in lwip_tftp_get_file_by_filename()
890 /* Send error packet to server */ in lwip_tftp_get_file_by_filename()
1034 /* Make request packet - TFTPC_OP_WRQ */ in lwip_tftp_put_file_by_filename()
1049 /* Send the request packet */ in lwip_tftp_put_file_by_filename()
1053 /* Send request packet failed */ in lwip_tftp_put_file_by_filename()
1056 … LWIP_DEBUGF(TFTP_DEBUG, ("lwip_tftp_put_file_by_filename : Failed to send request packet\n")); in lwip_tftp_put_file_by_filename()
1109 /* To send empty packet to server when file is a 0 byte file */ in lwip_tftp_put_file_by_filename()
1131 /* Form the DATA packet */ in lwip_tftp_put_file_by_filename()
1166 /* Send the request packet */ in lwip_tftp_put_file_by_filename()
1192 pstSendBuf: Packet to send to server
1193 ulSendSize: Packet length
1242 /*Max attempts not reached. Resend packet*/ in lwip_tftp_inner_put_file()
1260 /* If Received packet from another server */ in lwip_tftp_inner_put_file()
1262 /* The packet that is received is to be ignored. in lwip_tftp_inner_put_file()
1268 /* if this packet is unknown or incorrect packet */ in lwip_tftp_inner_put_file()
1283 /* if the packet is acknowledge packet */ in lwip_tftp_inner_put_file()
1304 /* Loop to get the last data packet from the receive buffer */ in lwip_tftp_inner_put_file()
1337 /* If a new packet is not received then donot change the byte order in lwip_tftp_inner_put_file()
1340 /* If received packet size < minimum packet size */ in lwip_tftp_inner_put_file()
1344 "Packet size < min packet size", in lwip_tftp_inner_put_file()
1353 /* Check if the received packet is from correct server and from in lwip_tftp_inner_put_file()
1358 /* This ACK packet is invalid. Just ignore it. */ in lwip_tftp_inner_put_file()
1363 /* if this packet is not ACK packet */ in lwip_tftp_inner_put_file()
1382 * (i) last data packet that was sent was not received at server side in lwip_tftp_inner_put_file()
1386 * state machine to initiate a receive of this data packet. in lwip_tftp_inner_put_file()
1389 /* This ACK packet is invalid. Just ignore it. */ in lwip_tftp_inner_put_file()
1395 * then it is an unexpected packet. in lwip_tftp_inner_put_file()
1400 "Received unexpected packet", in lwip_tftp_inner_put_file()
1446 u32_t ulResendPkt = 0; /* Resend the previous packet */ in lwip_tftp_get_file_by_filename_to_rawmem()
1447 u32_t ulIgnorePkt = 0; /* Ignore received packet */ in lwip_tftp_get_file_by_filename_to_rawmem()
1511 /* Make a request packet - TFTPC_OP_RRQ */ in lwip_tftp_get_file_by_filename_to_rawmem()
1531 /* Max attempts not reached. Resend packet */ in lwip_tftp_get_file_by_filename_to_rawmem()
1557 /* if this packet is unkonwn or incorrect packet */ in lwip_tftp_get_file_by_filename_to_rawmem()
1559 /* Send error packet to server */ in lwip_tftp_get_file_by_filename_to_rawmem()
1576 /* Validate received DATA packet. */ in lwip_tftp_get_file_by_filename_to_rawmem()
1582 /* Send Error packet to server */ in lwip_tftp_get_file_by_filename_to_rawmem()
1586 "Received unexpected packet", in lwip_tftp_get_file_by_filename_to_rawmem()
1595 /* Received previous data block again. Resend last packet */ in lwip_tftp_get_file_by_filename_to_rawmem()
1597 /* Now set ulResendPkt to 0 to send the last packet. */ in lwip_tftp_get_file_by_filename_to_rawmem()
1607 /* Continue in loop to send last packet again. */ in lwip_tftp_get_file_by_filename_to_rawmem()
1616 /* Send Error packet to server */ in lwip_tftp_get_file_by_filename_to_rawmem()
1619 "Packet size > max size", in lwip_tftp_get_file_by_filename_to_rawmem()
1624 LWIP_DEBUGF(TFTP_DEBUG, ("lwip_tftp_get_file_by_filename : Packet size > max size\n")); in lwip_tftp_get_file_by_filename_to_rawmem()
1639 /* If the received packet has only header and do not have payload, the return failure */ in lwip_tftp_get_file_by_filename_to_rawmem()
1648 /* copy the last packet to the memory */ in lwip_tftp_get_file_by_filename_to_rawmem()
1690 /* form the ACK packet for the DATA packet received */ in lwip_tftp_get_file_by_filename_to_rawmem()
1691 /* Go to the next packet no. */ in lwip_tftp_get_file_by_filename_to_rawmem()
1695 /* Send error packet to server */ in lwip_tftp_get_file_by_filename_to_rawmem()