Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
net_pkt Struct Reference

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_contextcontext
 Network connection context.
 
struct net_ififace
 Network interface.
 

Detailed Description

Network packet.

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

Field Documentation

◆ [union]

union { ... } net_pkt

buffer holding the packet

◆ buffer

struct net_buf* net_pkt::buffer

alias to a buffer fragment

◆ 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

buffer fragment

◆ 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: