lwip-devel
[Top][All Lists]
Advanced

[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


From: Yoav
Subject: [lwip-devel] [bug #32397] Resources are not freed when netif's go down or are removed
Date: Wed, 09 Feb 2011 13:30:07 +0000
User-agent: 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

URL:
  <http://savannah.nongnu.org/bugs/?32397>

                 Summary: Resources are not freed when netif's go down or are
removed
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: djinng
            Submitted on: Wed 09 Feb 2011 01:30:06 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: Other

    _______________________________________________________

Details:

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
pbufs).

A section of code introduced in 2003 into netif_set_ipaddr() does exactly
that.
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:

  <http://savannah.nongnu.org/bugs/?32397>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]