|
From: | Valentino |
Subject: | [lwip-devel] [bug #37376] Netif removal and active PCBs |
Date: | Mon, 17 Sep 2012 16:00:51 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1 |
URL: <http://savannah.nongnu.org/bugs/?37376> Summary: Netif removal and active PCBs Project: lwIP - A Lightweight TCP/IP stack Submitted by: blubyte Submitted on: lun 17 set 2012 16:00:50 GMT Category: None Severity: 3 - Normal Item Group: Feature Request Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: 1.4.0 _______________________________________________________ Details: 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: <http://savannah.nongnu.org/bugs/?37376> _______________________________________________ Messaggio inviato con/da Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |