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> |
||
|---|---|---|
| .. | ||
| app_memory | ||
| bluetooth | ||
| console | ||
| cpp | ||
| debug | ||
| dfu | ||
| disk | ||
| fs | ||
| logging | ||
| mgmt | ||
| net | ||
| random | ||
| settings | ||
| shell | ||
| storage | ||
| usb | ||
| CMakeLists.txt | ||
| Kconfig | ||