Patches by Pantelis Antoniou, 30 Mar 2004:
[kernel/u-boot.git] / net / tftp.c
index 2d3ee5f..5a5ae22 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) {