[Top][All Lists]
[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: |
Mon, 1 Dec 2003 09:39:02 -0200 |
Dear Christoph,
I believe that this is the only way. In your example, did you
close all the sockets?
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: segunda-feira, 1 de dezembro de 2003 06:23
To: address@hidden
Subject: Re: [lwip-users] Syncronise netif_remove() with tcpip_thread
Hi,
on 28 Nov 03 address@hidden wrote:
[...]
> See in netif.c the function netif_remove(struct netif * netif).
This
> function will remove the interface from the interface list.
Cassius, thanks for your answer.
Sorry, if I didn't make it clear enough in my previous mail, but my
problem is that netif_remove() is racy. Have I overlooked something?
Here my problem again:
> 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.
[...]
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
Cassius Resende Duarte.vcf
Description: Vcard