]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blobdiff - src/driver/eth/tftp.c
Merge branch 'tmp-mike2'
[keystone-rtos/ibl.git] / src / driver / eth / tftp.c
index f4dcabb390c3a718407cec98cb61cd20a50b48d0..beb3efd08101584e8e0c463ad68e2bc11e92d269 100644 (file)
@@ -45,6 +45,7 @@
 #include "timer.h"
 #include "stream.h"
 #include <string.h>
+#include "net_osal.h"
 
 
 /**********************************************************************
@@ -223,7 +224,7 @@ static void tftp_send_ack(void)
     TFTPHDR* ptr_tftphdr;
 
     /* Initialize the data buffer. */ 
-    memset ((void *)&tftpmcb.buffer[0], 0, TFTP_DATA_SIZE + TFTPHEADER_SIZE);
+    netMemset ((void *)&tftpmcb.buffer[0], 0, TFTP_DATA_SIZE + TFTPHEADER_SIZE);
 
     /* Create an ACK packet which is to be sent out. Get the pointer to the
      * TFTP Header. */
@@ -481,7 +482,7 @@ Int32 tftp_get_file (IPN server_ip, Int8* filename)
     }
 
     /* Initialize the TFTP MCB at this stage... */
-    memset ((void *)&tftpmcb, 0, sizeof(TFTP_MCB));
+    netMemset ((void *)&tftpmcb, 0, sizeof(TFTP_MCB));
 
     /* Populate the socket structure and register this with the UDP module. */
     socket.local_port       = 1234;