Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Network packet. More...
#include <net_pkt.h>
Data Fields | ||
intptr_t | fifo | |
The fifo is used by RX/TX threads and by socket layer. | ||
struct k_mem_slab * | slab | |
Slab pointer from where it belongs to. | ||
union { | ||
struct net_buf * frags | ||
buffer fragment More... | ||
struct net_buf * buffer | ||
alias to a buffer fragment More... | ||
}; | ||
buffer holding the packet | ||
struct net_pkt_cursor | cursor | |
Internal buffer iterator used for reading/writing. | ||
struct net_context * | context | |
Network connection context. | ||
struct net_if * | iface | |
Network interface. | ||
Network packet.
Note that if you add new fields into net_pkt, remember to update net_pkt_clone() function.
union { ... } net_pkt |
buffer holding the packet
struct net_buf* net_pkt::buffer |
alias to a buffer fragment
struct net_context* net_pkt::context |
Network connection context.
struct net_pkt_cursor net_pkt::cursor |
Internal buffer iterator used for reading/writing.
intptr_t net_pkt::fifo |
The fifo is used by RX/TX threads and by socket layer.
The net_pkt is queued via fifo to the processing thread.
struct net_buf* net_pkt::frags |
buffer fragment
struct net_if* net_pkt::iface |
Network interface.
struct k_mem_slab* net_pkt::slab |
Slab pointer from where it belongs to.