lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #21049] Allow reuse of pbufs after return from APIs


From: Jonathan Larmour
Subject: [lwip-devel] [bug #21049] Allow reuse of pbufs after return from APIs
Date: Wed, 12 Sep 2007 14:14:03 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070530 Fedora/1.5.0.12-1.fc5 Firefox/1.5.0.12

Follow-up Comment #2, bug #21049 (project lwip):

The problem is that most people won't be interested in reusing pbufs. The
socket layer won't for example. So we shouldn't add overhead for a usually
unnecssary operation.

A user-created pre-filled pbuf could have been changed in many ways. The
payload pointer could have been changed arbitrarily. The only way you could
guarantee reuse of the contents is to copy the pbuf and payload every time no
matter what. That's too painful.

I think if you really want to reuse pbuf data, you should be using a
PBUF_REF. Otherwise we should draw the line.


    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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