zephyr/subsys/net/ip
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
..
6lo_private.h net: Convert raw timeout values to use K_MSEC() macro 2018-05-28 17:20:11 -04:00
6lo.c net: 6lo: Do not try compressing IPHC header if not set 2018-03-02 07:11:46 +01:00
6lo.h
CMakeLists.txt net: IPv4 link local support 2018-07-31 16:34:28 +03:00
connection.c net: stats: do not use deallocated packet pointer 2018-06-11 17:33:17 -04:00
connection.h
dhcpv4.c net/dhcpv4: Unify timeout management in a unique k_delayed_work 2018-07-27 13:00:01 +03:00
dhcpv4.h net/dhcpv4: Rename functions to follow domain related naming rules 2018-07-27 13:00:01 +03:00
icmpv4.c net/icmpv4: Rename static function with icmpv4_ prefix 2018-07-24 17:22:58 +03:00
icmpv4.h net: Avoid holes in structs 2018-07-25 15:20:34 +03:00
icmpv6.c net/ipv6: Properly separate what belongs to ipv6 from the rest 2018-07-02 12:34:12 +03:00
icmpv6.h net: Avoid holes in structs 2018-07-25 15:20:34 +03:00
ipv4_autoconf_internal.h net: IPv4 link local support 2018-07-31 16:34:28 +03:00
ipv4_autoconf.c net: IPv4 link local support 2018-07-31 16:34:28 +03:00
ipv4.c net/icmpv4: Use generic IPv4 relevantly 2018-07-24 17:22:58 +03:00
ipv4.h net/ipv4: Remove useless return value 2018-07-24 17:22:58 +03:00
ipv6.c net: ipv6: Fix memory leak caused by NS request failure 2018-07-26 13:56:32 +03:00
ipv6.h net/ipv6: Properly separate what belongs to ipv6 from the rest 2018-07-02 12:34:12 +03:00
Kconfig net: tc: Add other priority to traffic class mappings 2018-08-06 10:23:57 +03:00
Kconfig.debug subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
Kconfig.ipv4 Kconfig: Clean up some symbol definitions 2018-08-01 12:47:17 -04:00
Kconfig.ipv6 subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
Kconfig.mgmt subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
Kconfig.rpl subsys: kconfig: Remove 'default n' properties and clean up a bit 2018-07-12 23:13:22 -04:00
Kconfig.stack net: ip: kconfig: Simplify NET_RX_STACK_RPL definition 2018-07-16 21:03:27 -04:00
Kconfig.stats net: eth: Vendor specific statistics 2018-08-02 12:42:27 +03:00
nbr.c
nbr.h
net_context.c net/ipv4: Remove useless return value 2018-07-24 17:22:58 +03:00
net_core.c net: IPv4 link local support 2018-07-31 16:34:28 +03:00
net_if.c net: IPv4 link local support 2018-07-31 16:34:28 +03:00
net_mgmt.c net/mgmt: Move NET_EVENT_INFO_MAX_SIZE into net core's private header 2018-04-12 09:56:07 -04:00
net_pkt.c net: buf: add linearize, append_bytes and skip APIs to net_buf 2018-08-06 10:43:46 +03:00
net_private.h net: Add promiscuous mode support 2018-07-24 15:12:37 +03:00
net_shell.c net: eth: Vendor specific statistics 2018-08-02 12:42:27 +03:00
net_shell.h
net_stats.c net: stats: Simplify periodic statistics printing 2018-07-24 09:20:46 -04:00
net_stats.h net: stats: handle_na_input: unref packet after stats are updated 2018-06-11 17:33:17 -04:00
net_tc_mapping.h net: tc: Add other priority to traffic class mappings 2018-08-06 10:23:57 +03:00
net_tc.c net: tc: Add other priority to traffic class mappings 2018-08-06 10:23:57 +03:00
promiscuous.c net: Add promiscuous mode support 2018-07-24 15:12:37 +03:00
route.c ip: route: disable LL address check when using dummy L2 2018-08-02 16:42:47 +03:00
route.h
rpl-mrhof.c
rpl-of0.c
rpl.c net/ipv6: Properly separate what belongs to ipv6 from the rest 2018-07-02 12:34:12 +03:00
rpl.h net: Avoid holes in structs 2018-07-25 15:20:34 +03:00
tcp_internal.h net: Avoid holes in structs 2018-07-25 15:20:34 +03:00
tcp.c net: Avoid holes in structs 2018-07-25 15:20:34 +03:00
trickle.c
udp_internal.h
udp.c
utils.c net: utils: Check null pointer when parsing IPv6 address 2018-07-20 00:02:01 -04:00