[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Changed IP address during runtime but TCP PCB stuck time wa
[lwip-users] Changed IP address during runtime but TCP PCB stuck time wait state
Sun, 16 Dec 2018 20:39:34 -0700 (MST)
I am doing a webserver that allows users to change device ip address during
runtime (no power reset required).
I've tried 2 ways of doing so:
2. netif_remove() and then netif_add() a new interface with the new ip
In both methods, I will re-init my http server:
3. Create a new netconn: netconn_new()
4. Bind to http port: netconn_bind()
Unfortunately, netconn_bind() to port 80 will fail because apparently the
previous pcb bound to port 80 is still there, in time wait state (lwip will
not allow multiple sockets listening to the same port).
How do I make sure the previous pcb is completely deleted or freed?
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
- [lwip-users] Changed IP address during runtime but TCP PCB stuck time wait state,