diff --git a/src/driver/eth/bootp.c b/src/driver/eth/bootp.c
index bce01327dddd39959b09dc0ad82661140c0fa79b..134c2eae7e3f25e81ec4ca97be9699c8d9b4f35a 100644 (file)
--- a/src/driver/eth/bootp.c
+++ b/src/driver/eth/bootp.c
#include "timer.h"
#include "stream.h"
#include <string.h>
+#include "net_osal.h"
/**********************************************************************
ptr_bootphdr->htype = BOOTP_HTYPE_ETHERNET;
ptr_bootphdr->hlen = 6;
ptr_bootphdr->xid = htonl(0x1);
- memcpy ((void *)&ptr_bootphdr->chaddr, (void *)&netmcb.net_device.mac_address[0], 6);
+ netMemcpy ((void *)&ptr_bootphdr->chaddr, (void *)&netmcb.net_device.mac_address[0], 6);
/* The packet has been populated; send it to the server. */
udp_sock_send (bootpmcb.sock, (Uint8 *)ptr_bootphdr, sizeof(BOOTPHDR));
ip_add_route (FLG_RT_NETWORK, netmcb.net_device.ip_address, netmcb.net_device.net_mask, 0);
if (netmcb.net_device.use_bootp_file_name == TRUE)
- memcpy (netmcb.net_device.file_name, ptr_bootphdr->file, sizeof(netmcb.net_device.file_name));
+ netMemcpy (netmcb.net_device.file_name, ptr_bootphdr->file, sizeof(netmcb.net_device.file_name));
/* Check if we had received a default router? */
if (defaultRouter != 0)
SOCKET socket;
/* Initialize the BOOT MCB */
- memset ((void *)&bootpmcb, 0, sizeof(BOOTP_MCB));
+ netMemset ((void *)&bootpmcb, 0, sizeof(BOOTP_MCB));
bootpmcb.asyncComplete = asyncComplete;
ptr_bootphdr->htype = BOOTP_HTYPE_ETHERNET;
ptr_bootphdr->hlen = 6;
ptr_bootphdr->xid = htonl(0x1);
- memcpy ((void *)&ptr_bootphdr->chaddr, (void *)&netmcb.net_device.mac_address[0], 6);
+ netMemcpy ((void *)&ptr_bootphdr->chaddr, (void *)&netmcb.net_device.mac_address[0], 6);
/* The packet has been populated; send it to the server. */
udp_sock_send (bootpmcb.sock, (Uint8 *)ptr_bootphdr, sizeof(BOOTPHDR));