Commit Graph
7 Commits
Author SHA1 Message Date
chrysn 6caf836023 lwip pdu implementation: shift from contiguous to memp + pbuf
the old implementation stuffed the pdu struct in front of the
transport-level pbuf, and preserved it on the stack while the packages
were sent.

this had two advantages:

* saving ram
* preserving the other implementation's structure of pdu->hdr == pdu+1
  (ie. starting right after the pdu struct)

but two disadvantages:

* bad readability and pointer juggling in the send routine
* relying on the send function to block until the package is out (which
  works for simple implementations of lwip drivers but not dma etc)

if something really assumes the contiguous memory structure, it will
show (unfortunately by corrupting other pdu structs), and chances are
people use ->hdr anyway.
2015-01-16 12:03:25 +01:00
chrysn 13d9ee291b provide lwip memory resources for more coap_malloc_type 2015-01-15 13:34:21 +01:00
chrysn 1199324dc7 fix wrong name for memp resource 2013-11-17 16:53:08 +01:00
chrysn 7359e0ca4d use lwip pools for resources and resource attributes 2013-11-17 16:53:07 +01:00
chrysn c23d681036 allocate the coap context in the lwip memory pools 2013-11-17 16:45:30 +01:00
chrysn d573c0779a use lwip pools for observations 2013-11-17 16:43:51 +01:00
chrysn 2a6f04dd16 use lwip memp pools for allocating coap_queue_t 2013-11-17 16:40:55 +01:00