taskSavannah Administration - Tasks: task #12248, Netif removal and active PCBs

 
 

task #12248: Netif removal and active PCBs

Submitter:  None
Submitted:  Mon 17 Sep 2012 03:58:51 PM UTC
   
 
Should Start On:  Mon 17 Sep 2012 12:00:00 AM UTC Should be Finished on:  Mon 17 Sep 2012 12:00:00 AM UTC
Category:  Approved Projects to be Reviewed Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Sep 2012 04:51:19 PM UTC, comment #2: 

I'm closing this task.

Regards,
Tomasz

Tomasz Konojacki <xenu>
Mon 17 Sep 2012 04:03:58 PM UTC, comment #1: 

Sorry, it is an issue of lwIP! I've sent it to the wrong list.

Valentino <blubyte>
Mon 17 Sep 2012 03:58:51 PM UTC, original submission:  

I'd like to know if there is clean method to remove all the active PCBs due to an netif_remove call.

I do it in this way:

1) I've added a nsapi value (a value that identifies the used netif for the PCB) to the pcb struct
2) I've extended tcp.c with the implementation of the status callback called by netif_remove
3) When the netif is removed I set the nsapi to an invalid value
4) In the tcp_slowtmr I check the status of nsapi value of the PCB and if it is invalid I remove the PCB.

Is this the correct way? Could you please give me any advice about the correct way to do it?



Anonymous

 

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

Attach Files:
   
   
Comment:
   

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 xenu (Posted a comment)
  • -email is unavailable- added by blubyte (Posted a comment)
  •  

    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.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-17 xenu CategoryNone Approved Projects to be Reviewed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code