Allocation callback in net_buf_heap_cb and net_buf_var_cb used for net_bufs with variable size payloads, defined by NET_BUF_POOL_HEAP_DEFINE or NET_BUF_POOL_VAR_DEFINE, allocate one more octet for internal variable ref_count, used in function generic_data_ref(), which in turn is needed for net_buf_clone()). The user gets a buffer which is shifted by one octet in memory block. This breaks alignment provided k_heap_alloc and k_malloc. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| ip | ||
| l2 | ||
| lib | ||
| pkt_filter | ||
| buf.c | ||
| CMakeLists.txt | ||
| hostname.c | ||
| Kconfig | ||
| Kconfig.hostname | ||
| Kconfig.template.log_config.default.net | ||
| Kconfig.template.log_config.net | ||