[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] p->payload == iphdr failed...
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] p->payload == iphdr failed... |
Date: |
Fri, 07 Nov 2008 13:31:28 +0000 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070530) |
Ed Sutter wrote:
>>
>> What frees ipacket's memory? Is there any chance that memory can be
>> reused
>> before the pbuf is freed?
>>
>> You may also need to consider the alignment of ipacket.
>
> Jonathan,
> Thanks for the response. The underlying driver releases the buffer.
> This is coordinated with details outside the scope of this problem.
> It is the same packet buffer used in the working method that uses
> PBUF_POOL for allocation.
Ah I see in the implementation of pbuf_header, that it can't expand
PBUF_REFs to the front. That will be your problem.
I think the only reason it doesn't do it is because there's no way to
sanity check that it's a valid thing to do.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------ Opinions==mine
- [lwip-users] p->payload == iphdr failed..., Ed Sutter, 2008/11/06
- Re: [lwip-users] p->payload == iphdr failed..., Ed Sutter, 2008/11/06
- Re: [lwip-users] p->payload == iphdr failed..., Jonathan Larmour, 2008/11/07
- Re: [lwip-users] p->payload == iphdr failed..., Ed Sutter, 2008/11/07
- Re: [lwip-users] p->payload == iphdr failed...,
Jonathan Larmour <=
- Re: [lwip-users] p->payload == iphdr failed..., Ed Sutter, 2008/11/07
- Re: [lwip-users] p->payload == iphdr failed..., Jonathan Larmour, 2008/11/07
- Re: [lwip-users] p->payload == iphdr failed..., Ed Sutter, 2008/11/08
- Re: [lwip-users] p->payload == iphdr failed..., Jonathan Larmour, 2008/11/08
- Re: [lwip-users] p->payload == iphdr failed..., Ed Sutter, 2008/11/08
- Re: [lwip-users] p->payload == iphdr failed..., address@hidden, 2008/11/08
- Re: [lwip-users] p->payload == iphdr failed..., Jonathan Larmour, 2008/11/08
- Re: [lwip-users] p->payload == iphdr failed..., Ed Sutter, 2008/11/08
- Re: [lwip-users] p->payload == iphdr failed..., address@hidden, 2008/11/08
- Re: [lwip-users] p->payload == iphdr failed..., Jonathan Larmour, 2008/11/09