Forum Discussion
Altera_Forum
Honored Contributor
19 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- Hi smalllight, could you please explain how you did so. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15253) --- Quote End --- [/b] --- Quote End --- Hi, MFM In the fact,the tftp server is very similar with a tftp client In the u-boot, there are no the code about WRQ. if a tftp client want transport a file to tftp server. it will send a WRQ to tftpserver,the tftp server will send a ACK to client when the receive the WRQ packet. then the client will transport the fill 512 bytes in once. when the server receive the data packey,it send a ACK packet to client. if the data length is smaller than 512 bytes, the file transport success. so I add some code to ask the WRQ packet in the function TftpHandle and change the TftpOurPort to WELL_KNOWN_PORT and you must Save the Client IP when you receive the ARP packet. Before your work,you should read the tftp protcol document.