[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: Christoph Bartelmus
Subject: Re: [lwip-users] Syncronise netif_remove() with tcpip_thread
Date: 01 Dec 2003 09:23:00 +0100
User-agent: OpenXP/3.8.13-14 (Linux)


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.


reply via email to

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