zephyr/include/net
Johan Hedberg 27fc467e74 net: buf: Allow NULL head pointer when inserting to frag list
To avoid extra logic in code that creates net_buf fragment lists, make
it possible to pass a NULL pointer as the head net_buf when there are
no previous buffers. Before this change the code would look like this:

	if (head) {
		net_buf_frag_add(head, buf);
	} else {
		head = net_buf_ref(buf);
	}

After the patch the code can simply do:

	head = net_buf_frag_add(head, buf);

This will then do the right thing regardless if head is NULL or
non-NULL.

Change-Id: I300394242e2e243ed3839b25629ec816dd98c148
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-09-30 15:07:32 +00:00
..
uip net: Fix net_send return value documentation 2016-09-12 02:19:57 +00:00
arp.h net: yaip: Moved ARP helper macro to arp.h 2016-07-13 14:06:23 +00:00
buf.h net: buf: Allow NULL head pointer when inserting to frag list 2016-09-30 15:07:32 +00:00
ethernet.h net: yaip: Provide separate header file for ethernet 2016-07-13 14:06:14 +00:00
ip_buf.h net: 6lowpan: Fix 6lowpan fragmentation 2016-05-19 14:18:38 +00:00
l2_buf.h net: 6lowpan: Fix 6lowpan fragmentation 2016-05-19 14:18:38 +00:00
nbuf.h net: yaip: Trivial comment fixes in header files 2016-07-13 14:06:14 +00:00
net_context.h net/yaip: revert merge 2016-07-22 04:43:09 +00:00
net_core.h net/yaip: revert merge 2016-07-22 04:43:09 +00:00
net_if.h net/yaip: revert merge 2016-07-22 04:43:09 +00:00
net_ip.h net/yaip: revert merge 2016-07-22 04:43:09 +00:00
net_l2.h net/yaip: revert merge 2016-07-22 04:43:09 +00:00
net_linkaddr.h net: Add header file for generic link address 2016-07-12 07:20:40 +00:00
net_socket.h net/yaip: revert merge 2016-07-22 04:43:09 +00:00
net_stats.h net: yaip: Add statistics gathering support 2016-07-12 19:20:43 +00:00
tinydtls.h checkpatch: error - trailing_whitespace 2016-02-05 20:24:33 -05:00