[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] ip forward and pbuf corruption
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] ip forward and pbuf corruption |
Date: |
Mon, 6 Feb 2012 19:22:37 +0000 |
On 5 Feb 2012, at 21:40, Tyrel Newton wrote:
> Does anybody have any clues as to where to look for the problem? My guess is
> that its somewhere in the etharp code, but I can't find it. Copying the
> entire pbuf is not exactly a good solution, though it definitely works.
The fact the copying solves the problem does suggest you have an issue with the
pbuf being freed, reused or corrupted. Are you able to add any debug tracing
to your stack? If so, I would add some logging to obvious places like
pbuf_free() and see if you can see the pbuf you are using being released.
The way that you are using the pbufs is a little unusual. Which API are you
using to lwIP? Or are you modifying lwIP internally to get the forwarding
behaviour?
Kieran