Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
net_pkt Struct Reference

Network packet. More...

#include <net_pkt.h>

Data Fields

intptr_t fifo
 
struct k_mem_slab * slab
 
union {
   struct net_buf *   frags
 
   struct net_buf *   buffer
 
}; 
 
struct net_pkt_cursor cursor
 
struct net_contextcontext
 
struct net_ififace
 

Detailed Description

Network packet.

Note that if you add new fields into net_pkt, remember to update net_pkt_clone() function.

Field Documentation

◆ 

union { ... } net_pkt::@173

buffer holding the packet

◆ buffer

struct net_buf* net_pkt::buffer

◆ context

struct net_context* net_pkt::context

Network connection context

◆ cursor

struct net_pkt_cursor net_pkt::cursor

Internal buffer iterator used for reading/writing

◆ fifo

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.

◆ frags

struct net_buf* net_pkt::frags

◆ iface

struct net_if* net_pkt::iface

Network interface

◆ slab

struct k_mem_slab* net_pkt::slab

Slab pointer from where it belongs to


The documentation for this struct was generated from the following file: