Re: [lwip-users] FW: Problem with renewing DHCP after link down/up with the new LWIP V2.0.2

2017-10-06 Thread Noam Weissman
Hi Simeon, Do you use an OS ?... if you do, you are not supposed to call dhcp_start etc... but rather netif_dhcp_start (or similar) I am not by PC so I writing from memory 😊 The difference are that the first must be called from within LwIP own task as it is not thread safe, while the second

Re: [lwip-users] FW: Problem with renewing DHCP after link down/up with the new LWIP V2.0.2

2017-10-06 Thread simeon.trifonov
Hi Noam, I use OS, but actually this is not important, because I use the stack in a single thread. So I don’t expect problems from not thread safe functions. I also set the IP address and mask to 0 when I detect link down. But I expect somehow to have a function call when the IP address is

[lwip-users] Spurious retransmission of FIN, ACK and ACK

2017-10-06 Thread Adrian Figueroa
Hello! I have implemented a simple TCP server on lwIP 1.4.1 running on chibiOS (a realtime OS) with the netconn api on an STM32F746. It goes like this: TCP server is opened and waits for connections: conn = netconn_new(NETCONN_TCP); LWIP_ERROR("http_server: invalid conn", (conn != NULL

Re: [lwip-users] Confusion about udp_sendto_if()

2017-10-06 Thread Sergio R. Caprile
I did not take the time to read and analyze your whole message, stopped at the Ip addresses. So I may jump early into conclusions and be wrong. Disclaimer done, I remember reading that *lwIP "routing" currently does not support multiple interfaces on the same subnet*; which is your case. To "r

Re: [lwip-users] Spurious retransmission of FIN, ACK and ACK

2017-10-06 Thread goldsi...@gmx.de
Adrian Figueroa wrote: I have implemented a simple TCP server on lwIP 1.4.1 running on chibiOS (a realtime OS) with the netconn api on an STM32F746. It goes like this: [..] My TCP client (it is a Matlab PC) connects, sends some data, and disconnects. The TCP server also closes the connection

Re: [lwip-users] FW: Problem with renewing DHCP after link down/up with the new LWIP V2.0.2

2017-10-06 Thread goldsi...@gmx.de
Could you please stop quoting over 80kb per mail? Thanks. simeon.trifo...@amk-drives.bg wrote: I also set the IP address and mask to 0 when I detect link down. Ehrm, why do you do that? When DHCP is enabled, DHCP has control over the IP addresses. If you mess with them manually while DHCP is