[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc()
From: |
Bill Auerbach |
Subject: |
RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc() |
Date: |
Wed, 15 Jul 2009 14:19:41 -0400 |
>However, I'd like to know what the purpose of
>
> pbuf_alloc(PBUF_RAW, 0, PBUF_POOL);
>
>is? Since there is no API that supports increasing a pbuf's length
>without
>moving the payload to the front (which you can't in this case, because
>PBUF_RAW is used), you'll end up with a pbuf of zero length, which is
>bound to
>lead to problems in other parts of the stack. There are checks for pbuf-
>>len
>not being zero somewhere... (although I don't remember where and why).
The above is used in PPP, and I use:
pbuf_alloc( PBUF_RAW, 0, PBUF_REF )
in my application. It's useful for zero-copy output operations.
Bill
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Iordan Neshev, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Iordan Neshev, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/15
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Simon Goldschmidt, 2009/07/15
- RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(),
Bill Auerbach <=
- Re: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), address@hidden, 2009/07/15
- RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Bill Auerbach, 2009/07/15
- Re: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Alain Mouette, 2009/07/15
- Re: RE: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Simon Goldschmidt, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Simon Goldschmidt, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Iordan Neshev, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Kieran Mansley, 2009/07/16
- [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Simon Goldschmidt, 2009/07/27
- Re: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), Alain Mouette, 2009/07/16
- Re: [lwip-devel] [bug #27034] Invalid ASSERT in pbuf_alloc(), address@hidden, 2009/07/16