[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] [lwip] why is netif declared static in ip_output()?
From: |
leon . woestenberg |
Subject: |
[lwip-users] [lwip] why is netif declared static in ip_output()? |
Date: |
Thu, 09 Jan 2003 01:59:28 -0000 |
Hello,
why is netif declared static in ip_output()?
This brings concurrency problems if, in a pre-emptive multitasking
environment, concurrent calls to ip_output() occur.
err_t
ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
u8_t ttl, u8_t proto)
{
static struct netif *netif;
... <- critical section for staticly declared netif variable
return ip_output_if(p, src, dest, ttl, proto, netif);
Leon.
[This message was sent through the lwip discussion list.]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] [lwip] why is netif declared static in ip_output()?,
leon . woestenberg <=