[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] [task #12248] Netif removal and active PCBs

From: anonymous
Subject: [Savannah-hackers-public] [task #12248] Netif removal and active PCBs
Date: Mon, 17 Sep 2012 15:58:51 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1


                 Summary: Netif removal and active PCBs
                 Project: Savannah Administration
            Submitted by: None
            Submitted on: lun 17 set 2012 15:58:51 UTC
         Should Start On: lun 17 set 2012 00:00:00 UTC
   Should be Finished on: lun 17 set 2012 00:00:00 UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                  Effort: 0.00



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?


Reply to this item at:


  Messaggio inviato con/da Savannah

reply via email to

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