]> git.sur5r.net Git - u-boot/blobdiff - net/tftp.c
* Patch by Matthew S. McClintock, 14 Apr 2004:
[u-boot] / net / tftp.c
index fdf1770f0177247d7b2b25e06547266d4d0e6f2c..5a5ae22ac85b367ac7f83d190fbc31fac0f158b0 100644 (file)
@@ -111,7 +111,7 @@ TftpSend (void)
         *      We will always be sending some sort of packet, so
         *      cobble together the packet headers now.
         */
-       pkt = NetTxPacket + ETHER_HDR_SIZE + IP_HDR_SIZE;
+       pkt = NetTxPacket + NetEthHdrSize() + IP_HDR_SIZE;
 
        switch (TftpState) {
 
@@ -224,7 +224,7 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
 
 #ifdef ET_DEBUG
                if (TftpState == STATE_RRQ) {
-                       printf("Server did not acknowledge timeout option!\n");
+                       puts ("Server did not acknowledge timeout option!\n");
                }
 #endif