Revised to prevent DHCPClient::discover from hanging.

Fork of WIZ820ioInterface by ban4jp -

Revision:
9:c1722862c13b
Parent:
5:fb15c35d1e28
--- a/DHCPClient/DHCPClient.cpp	Tue Feb 04 03:20:06 2014 +0000
+++ b/DHCPClient/DHCPClient.cpp	Fri Aug 15 19:53:25 2014 +0000
@@ -19,7 +19,7 @@
     m_pos = 0;
     const uint8_t header[] = {0x01,0x01,0x06,0x00};
     add_buf((uint8_t*)header, sizeof(header));
-    uint32_t x = time(NULL) + rand();
+    uint32_t x = time(NULL) + 0x8042;//rand();
     xid[0] = x>>24; xid[1] = x>>16; xid[2] = x>>8; xid[3] = x;
     add_buf(xid, 4);
     fill_buf(20, 0x00);