zephyr/subsys
Michael Scott db577f00b1 net: buf: add linearize, append_bytes and skip APIs to net_buf
This change moves the logic for linearize and append_bytes from
the net_pkt sources into the net_buf sources where it can be
made available to layers which to not depend on net_pkt.  It also,
adds a new net_buf_skip() function which can be used to iterated
through a list of net_buf (freeing the buffers as it goes).

For the append_bytes function to be generic in nature, a net_buf
allocator callback was created.  Callers of append_bytes pass in
the callback which determines where the resulting net_buf is
allocated from.

Also, the dst buffer in linearize is now cleared prior to copy
(this was an addition from the code moved from net_pkt).

In order to preserve existing callers, the original functions are
left in the net_pkt layer, but now merely act as wrappers.

Signed-off-by: Michael Scott <mike@foundries.io>
2018-08-06 10:43:46 +03:00
..
app_memory Kconfig: Clean up some symbol definitions 2018-08-01 12:47:17 -04:00
bluetooth Bluetooth: att: Add option to disable GATT writable name 2018-08-03 10:41:01 +02:00
console subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
cpp kconfig: Move CPLUSPLUS from root to "Compiler Options" 2018-04-30 13:12:01 -04:00
debug subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
dfu subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
disk subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
fs cmake: default to linking 'app' with the interface library 'FS' 2018-07-25 08:27:45 -04:00
logging logging: fix runtime filtering initialization 2018-08-02 19:18:05 +02:00
mgmt subsys: mgmt: Fix broken OTA firmware update 2018-07-18 14:32:06 +02:00
net net: buf: add linearize, append_bytes and skip APIs to net_buf 2018-08-06 10:43:46 +03:00
random subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
settings cmake: settings: Don't add ext nffs include dir to global includes 2018-07-25 08:27:45 -04:00
shell shell: Add missing header 2018-08-02 19:14:19 +02:00
storage subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
usb drivers: uart: Allow to pass arbitrary user data to irq callback 2018-08-02 19:20:12 +02:00
CMakeLists.txt userspace: compartmentalized app memory organization 2018-07-25 12:02:01 -07:00
Kconfig userspace: compartmentalized app memory organization 2018-07-25 12:02:01 -07:00