From: Guy L. <gu...@gu...> - 2002-01-10 17:38:03
|
Alberto Perdomo wrote: > Hi Guy. > > We=B4re been working with the UCIP stack. I=B4m porting it to a > DSP platform and made some corrections to code. We had > several problems. The hardest was, that the TCP layer > didn=B4t work, every time a packet was received there was an > exception. We found the error. It=B4s located in the file > nettcp.c, function tcpReadJiffy. It seems that you mixed up > two lines: > > this is how it was in the original code: > tcb->rcvBuf =3D tcb->rcvq.qHead->nextChain; > tcb->rcvq.qHead =3D tcb->rcvBuf; > > this is how it really works: > tcb->rcvBuf =3D tcb->rcvq.qHead; > tcb->rcvq.qHead =3D tcb->rcvBuf->nextChain; > > so, that=B4s it. it really took us a few days to find it, > because we didn=B4t know the code good, but we managed... > > yours sincerely, > > alberto perdomo. Thanks Alberto. Robert, can you look in to this? It looks like you replaced nDEQUEUE() probably so you could trace it outside of the macro but it's going to drop the head chain of the queue. Can we just go back to using nDEQUEUE()? Thanks. Guy -- "Embedded and Open Source Solutions" Guy Lancaster Computer Consultants mailto:gu...@gu... http://guylancaster.com |