Re: [lwip-users] DHCP usage

2015-06-05 Thread Adam Fullerton
Hi Sandra, I e-mailed you directly as I don't like appearing on the lwIP mail list. I'm the wrong person to ask as I use the socket API. The only place where I use the lwIP functions is in the interface layer which binds the Ethernet drivers to lwIP, hence the abstraction layer functions such

[lwip-users] ERROR:Assertion failed: "tcp_slowtmr: active pcb->state != CLOSED" at line 662 in tcp.c

2015-06-05 Thread Staffan Wiklund
Hello   I wonder if you know what the reason for the following error can be: tcp.c:662 ERROR:Assertion failed: '"tcp_slowtmr: active pcb->state != CLOSED\n"' at line 662 in tcp.c.   The LWIP source code is version 1.3.2   Best regards Staffan  

[lwip-users] DHCP usage

2015-06-05 Thread Sandra Gilge
Hallo, thanks, I'm doing the dhcp_release and can see it in wireshark now. Since I work with lwipv1.4.1 I use the netifapi functions. For dhcp release I call netifapi_netif_common(netif, NULL, dhcp_release); That leads to another questions: Wouldn't it make sense to have a define in netif

Re: [lwip-users] DHCP usage

2015-06-05 Thread Sergio R. Caprile
I'm no DHCP expert, but, is there any reason why you have to see something in wireshark when turning DHCP off ? You have been leased an address for a period of time, whether you use it or not is your problem (though I may be wrong). Your pseudo-code looks right to me. If you want to see something m

[lwip-users] DHCP usage

2015-06-05 Thread Sandra Gilge
Hallo, The IP configuration in our embedded system is reconfigurable by the user during runtime. The user can also switch on DHCP or switch it off and use a static IP address. What is the correct way to switch DHCP off. Do I have to call netifapi_dhcp_stop(), when switching off DHCP? I tr