[Top][All Lists]

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

RE: [lwip-users] use of static variables in tcp_in.c

From: Goldschmidt Simon
Subject: RE: [lwip-users] use of static variables in tcp_in.c
Date: Thu, 4 Oct 2007 09:21:17 +0200

> tcp_in.c in lwIP 1.2.0 makes use of static global variables to pass
> arguments between functions. This implies that tcp_input is not
> However this doesn't seem to be documented in ethernetif.c or anywhere
> Is there something I'm missing here? 

Does it have to be documented in ethernetif.c? Why would you call
more than once? That would mean you would call tcp_input (or maybe
from your netif->output function (which may be called in tcp_input).
That is
not allowed in RAW mode (API mode puts that packet on a queue only, so
the function
is not really called again). This is documented, for example in
loopif.c. Maybe
it should be documented better...


reply via email to

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