[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #32397] Resources are not freed when netif's go down o
[lwip-devel] [bug #32397] Resources are not freed when netif's go down or are removed
Wed, 09 Feb 2011 13:30:07 +0000
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10
Summary: Resources are not freed when netif's go down or are
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: djinng
Submitted on: Wed 09 Feb 2011 01:30:06 PM GMT
Severity: 3 - Normal
Item Group: Faulty Behaviour
Assigned to: None
Discussion Lock: Any
lwIP version: Other
When disabling a netif using netif_set_down(), and when removing a netif
using netif_remove(), associated resources are not cleaned up.
After several such iterations, the stack can easily run out of resources (e.g
A section of code introduced in 2003 into netif_set_ipaddr() does exactly
This code with some modifications should IMO be applied to netif_set_down()
(which will be automatically called when removing a netif)
The modifications should include removing relevant PCBs from bound, time_wait
and listening queues as well as the active queue.
If any other resources are linked to a netif somehow, they should be cleaned
up as well.
p.s Although the typical scenario for lwIP may not include lowering and/or
removing interfaces very often (or at all), the impact - especially when using
PPP - is considerable.
Reply to this item at:
Message sent via/by Savannah
|[Prev in Thread]
||[Next in Thread]|
- [lwip-devel] [bug #32397] Resources are not freed when netif's go down or are removed,