1. Reduce the size of the heap memory 2. Change the TCP segment size 3. Disable UDP + DHCP + DNS 4. Change the configuration of the TCP/IP thread
Fork of lwip by
Diff: core/netif.c
- Revision:
- 11:4b3f6f8b92d2
- Parent:
- 0:51ac1d130fd4
--- a/core/netif.c Thu May 30 17:11:58 2013 +0100 +++ b/core/netif.c Mon Aug 19 18:37:54 2013 +0300 @@ -318,6 +318,12 @@ void netif_set_ipaddr(struct netif *netif, ip_addr_t *ipaddr) { + /* Protect against dereferencing NULL pointers by + treating like ANY, as does ip_addr_set() */ + if (!ipaddr) { + ipaddr = IP_ADDR_ANY; + } + /* TODO: Handling of obsolete pcbs */ /* See: http://mail.gnu.org/archive/html/lwip-users/2003-03/msg00118.html */ #if LWIP_TCP