zephyr/subsys/net
Jordan Yates 7be105b86a net: buf: net_buf_remove_* API
Adds a new family of `struct net_buf` operations that remove data from
the end of the buffer.

The semantics of `net_buf_remove_mem` have been chosen to match those of
`net_buf_pull_mem`, i.e. the return value is a pointer to the memory
that was removed.

The opposite of this function, `net_buf_remove`, would need to return
the old end of the data buffer to be useful. However this value is
always an invalid target for reading or writing data to (It points to
the middle of unused data).The existance of the function would be
misleading, therefore it is not implemented.

Fixes #31069.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2021-01-05 14:31:13 +02:00
..
ip net: dhcp: correct timeout scheduling with multiple interfaces 2021-01-04 10:02:58 +02:00
l2 bluetooth: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-19 20:01:42 -05:00
lib net: dns: review use of k_work APIs 2021-01-04 10:01:47 +02:00
buf.c net: buf: net_buf_remove_* API 2021-01-05 14:31:13 +02:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
hostname.c net: hostname: define public macro representing maximum hostname length 2020-11-17 19:21:43 -05:00
Kconfig power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
Kconfig.hostname kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.default.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.template.log_config.net kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00