UIPEthernet library for Arduino IDE, Eclipse with arduino plugin and MBED/SMeshStudio (AVR,STM32F,ESP8266,Intel ARC32,Nordic nRF51,Teensy boards,Realtek Ameba(RTL8195A,RTL8710)), ENC28j60 network chip. Compatible with Wiznet W5100 Ethernet library API. Compiled and tested on Nucleo-F302R8. Master repository is: https://github.com/UIPEthernet/UIPEthernet/

Revision:
30:1ec7fa7f2e6a
Parent:
0:e3fb1267e3c3
Child:
33:7ba5d53df0f2
--- a/Dhcp.cpp	Tue Jan 24 18:10:55 2017 +0100
+++ b/Dhcp.cpp	Tue Jan 31 01:33:00 2017 +0100
@@ -340,7 +340,7 @@
                 
                 case dhcpServerIdentifier :
                     opt_len = _dhcpUdpSocket.read();
-                    if( *((uint32_t*)_dhcpDhcpServerIp) == 0 || 
+                    if( IPAddress(_dhcpDhcpServerIp) == IPAddress(0,0,0,0) ||
                         IPAddress(_dhcpDhcpServerIp) == _dhcpUdpSocket.remoteIP() )
                     {
                         _dhcpUdpSocket.read((char*)_dhcpDhcpServerIp, sizeof(_dhcpDhcpServerIp));