zephyr/subsys/net
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
..
ip net: buf: add linearize, append_bytes and skip APIs to net_buf 2018-08-06 10:43:46 +03:00
l2 net: eth: mgmt: Add remaining 802.1Qav parameter types 2018-08-06 10:37:09 +03:00
lib net: net_app: Correctly notify server on TCP disconnection 2018-08-02 10:28:20 +03:00
buf.c net: buf: add linearize, append_bytes and skip APIs to net_buf 2018-08-06 10:43:46 +03:00
CMakeLists.txt net: l2: Move the layer 2 code into subsys/net/ 2018-06-27 17:02:59 +03:00
hostname.c net: hostname: Fix hostname buffer length 2018-04-26 16:31:16 +03:00
Kconfig subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
Kconfig.hostname subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
TODO Bluetooth: Kconfig: Rename CONFIG_BLUETOOTH_* to CONFIG_BT_* 2017-08-09 11:14:19 +03:00