buglwIP - A Lightweight TCP/IP stack - Bugs: bug #28248, netif_remove doesn't call netif...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #28248: netif_remove doesn't call netif callback

Submitter:  Simon Goldschmidt <goldsimon>
Submitted:  Thu 10 Dec 2009 03:58:03 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  1.3.1

Sun 10 Jan 2010 01:34:44 PM UTC, comment #1: 

Fixed by calling netif_set_down() if netif is up in netif_remove()

Simon Goldschmidt <goldsimon>
Group administrator
Thu 10 Dec 2009 03:58:03 PM UTC, original submission:  

Without the callback, a callback-driven application will think the netif is still active and up.

netif_remove() should possible at least call netif_set_down(). That makes sure the user application is at least noticed of the fact that the netif isn't up any more.

Adding a 'reason' argument to the callback would be best, as we couuld than indicate that the netif is about to be removed. However, that would mean breaking backwards compatibility.

Simon Goldschmidt <goldsimon>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-01-10 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code