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

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Thu 10 Dec 2009 03:58:03 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 10 Jan 2010 01:34:44 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1