diff options
Diffstat (limited to 'Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c')
-rw-r--r-- | Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c b/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c index e6377af52..761c6adf1 100644 --- a/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c +++ b/Demos/Device/ClassDriver/RNDISEthernet/Lib/DHCP.c @@ -69,7 +69,7 @@ int16_t DHCP_ProcessDHCPPacket(void* IPHeaderInStart, void* DHCPHeaderInStart, v DHCPHeaderOUT->ElapsedSeconds = 0; DHCPHeaderOUT->Flags = DHCPHeaderIN->Flags; DHCPHeaderOUT->YourIP = ClientIPAddress; - memcpy(&DHCPHeaderOUT->ClientHardwareAddress, &DHCPHeaderIN->ClientHardwareAddress, sizeof(MAC_Address_t)); + memmove(&DHCPHeaderOUT->ClientHardwareAddress, &DHCPHeaderIN->ClientHardwareAddress, sizeof(MAC_Address_t)); DHCPHeaderOUT->Cookie = SwapEndian_32(DHCP_MAGIC_COOKIE); /* Alter the incoming IP packet header so that the corrected IP source and destinations are used - this means that |