lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] Syncronise netif_remove() with tcpip_thread


From: Cassius
Subject: RE: [lwip-users] Syncronise netif_remove() with tcpip_thread
Date: Fri, 28 Nov 2003 16:53:02 -0200

Dear Christoph,

        See in netif.c the function netif_remove(struct netif * netif).
This function will remove the interface from the interface list. Be
aware if this interface is the default gateway. The default gateway will
be set to NULL in such cases.

Good Luck,


Cassius Resende Duarte
Electronics R&D Division
Enginneer

Rua Dr. Furlan Jr. 1028
Sertaozinho - SP Brazil
Tel: +55 16 3946-3516 (R. 6696)
Fax: +55 16 3946-3577
E-mail: address@hidden
ICQ# 115-493-944
__________________________SMAR
                          FIRST IN FIELDBUS

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Christoph Bartelmus
Sent: sexta-feira, 28 de novembro de 2003 15:54
To: address@hidden
Subject: [lwip-users] Syncronise netif_remove() with tcpip_thread


Hi *.*,

I'm trying to port lwip to an embedded system. The net interface is  
running in its own thread. When I want to remove the interface, how can
I  
make sure that tcpip_tread does not try to access the data structures
just  
freed by netif_remove()?

I can reproduce a case where tcpip_thread tries sending a packet
although  
the net interface has been just removed, causing havoc.

TIA,

Christoph


_______________________________________________
lwip-users mailing list
address@hidden http://mail.gnu.org/mailman/listinfo/lwip-users

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003
 





reply via email to

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