[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] LwIP tcp_output Pcb Corruption
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] LwIP tcp_output Pcb Corruption |
Date: |
Fri, 22 Mar 2013 07:54:18 +0100 (CET) |
address@hidden wrote:
> Ok – nevermind last email. I need the ETH IRQ handler. In there, I load an
> application list (not an LwIP pbuf) with the received ETH packet and clear the
> ETHDMA bits to get the next interrupt. In main, I get the packet out of the
> list and call ethernet_input to have LwIP handle it. Is this how it should be
> done to avoid problems in tcp_output?
Yes. This is one way to do it. You are essentially free to chose any way that
makes sure the core lwIP code (except for allocating/freeing PBUF_POOL pbufs
and other memp-memory) is not exposed to concurrent execution (i.e. executed
from main and ISR at the same time).
Simon