lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #2942] pbuf_realloc cannot not grow chains (can only s


From: Jonathan Larmour
Subject: [lwip-devel] [bug #2942] pbuf_realloc cannot not grow chains (can only shrink chains).
Date: Tue, 17 Apr 2007 14:44:21 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070223 Fedora/1.5.0.10-1.fc5 Firefox/1.5.0.10

Follow-up Comment #3, bug #2942 (project lwip):

There doesn't seem to be any point to me since you can grow a pbuf chain by
simply pbuf_chain()'ing another pbuf, and that would almost certainly be more
efficient.

I did happen to notice though that pbuf_realloc uses an s16_t to express the
difference in size between the old and new sizes, but you could be e.g.
shrinking a 64K pbuf to 16K, which can't be expressed in an s16_t. I'll fix
that right now by making it an s32_t.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?2942>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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