Add unit tests for DHCP

Three simple tests that test the basic functionality of the DHCP client.
They require that UDP checksums are off for now.
This commit is contained in:
Erik Ekman
2012-03-22 10:52:05 +01:00
committed by goldsimon
parent c622985fda
commit 679d3fd5b3
4 changed files with 804 additions and 1 deletions

View File

@@ -37,6 +37,10 @@
#define LWIP_NETCONN 0
#define LWIP_SOCKET 0
/* Enable DHCP to test it, disable UDP checksum to easier inject packets */
#define LWIP_DHCP 1
#define CHECKSUM_CHECK_UDP 0
/* Minimal changes to opt.h required for tcp unit tests: */
#define MEM_SIZE 16000
#define TCP_SND_QUEUELEN 40