zephyr/include/net
Johan Hedberg e088b06e44 net: buf: Add API for saving & restoring parsing state
Occasionally it may be useful to pass a buffer to a subroutine and
have the routine do parsing of the buffer. However, since there isn't
necessarily a guarantee of how the subroutine performs the parsing it
may be necessary to restore to a well known state after the routine
returns.

This patch adds a simple struct for storing the parsing state as well
as two new functions to save and restore the state.

Change-Id: If9153ff9997021c76243ea9ebff13dfe94c45faa
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-07-20 14:51:24 +03:00
..
uip net: Add documentation about yielding 2016-07-13 09:20:11 +00:00
yaip net: yaip: Add comment explaining net_core's verdict values 2016-07-13 14:06:23 +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: Add API for saving & restoring parsing state 2016-07-20 14:51:24 +03: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: Add net_context to compilation 2016-07-12 19:20:43 +00:00
net_core.h net: yaip: Initial commit for new IP stack 2016-07-12 07:18:06 +00:00
net_if.h net: yaip: Add multicast address to network interface 2016-07-12 07:21:21 +00:00
net_ip.h net: yaip: Initial commit for new IP stack 2016-07-12 07:18:06 +00:00
net_l2.h net: yaip: Add an L2 layer 2016-07-13 14:06:20 +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: Initial commit for new IP stack 2016-07-12 07:18:06 +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