sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
pbuf Struct Reference

#include <tcpip.h>

Public Attributes

struct pbuf * next
void * payload
u16 tot_len
u16 len
u8 type
u8 flags
u16 ref
u16_t tot_len
u16_t len
u8_t type_internal
u8_t flags
LWIP_PBUF_REF_T ref
u8_t if_idx

Detailed Description

Main packet buffer struct

Definition at line 233 of file tcpip.h.

Member Data Documentation

◆ flags [1/2]

u8 pbuf::flags

misc flags

Definition at line 257 of file tcpip.h.

◆ flags [2/2]

u8_t pbuf::flags

misc flags

Definition at line 211 of file pbuf.h.

◆ if_idx

u8_t pbuf::if_idx

For incoming packets, this contains the input netif's index

Definition at line 221 of file pbuf.h.

◆ len [1/2]

u16 pbuf::len

length of this buffer

Definition at line 251 of file tcpip.h.

◆ len [2/2]

u16_t pbuf::len

length of this buffer

Definition at line 203 of file pbuf.h.

◆ next

struct pbuf * pbuf::next

next pbuf in singly linked pbuf chain

Definition at line 236 of file tcpip.h.

◆ payload

void * pbuf::payload

pointer to the actual data in the buffer

Definition at line 239 of file tcpip.h.

◆ ref [1/2]

u16 pbuf::ref

the reference count always equals the number of pointers that refer to this pbuf. This can be pointers from an application, the stack itself, or pbuf->next pointers from a chain.

Definition at line 264 of file tcpip.h.

◆ ref [2/2]

LWIP_PBUF_REF_T pbuf::ref

the reference count always equals the number of pointers that refer to this pbuf. This can be pointers from an application, the stack itself, or pbuf->next pointers from a chain.

Definition at line 218 of file pbuf.h.

◆ tot_len [1/2]

u16 pbuf::tot_len

total length of this buffer and all next buffers in chain belonging to the same packet.

For non-queue packet chains this is the invariant: p->tot_len == p->len + (p->next? p->next->tot_len: 0)

Definition at line 248 of file tcpip.h.

◆ tot_len [2/2]

u16_t pbuf::tot_len

total length of this buffer and all next buffers in chain belonging to the same packet.

For non-queue packet chains this is the invariant: p->tot_len == p->len + (p->next? p->next->tot_len: 0)

Definition at line 200 of file pbuf.h.

◆ type

u8 pbuf::type

pbuf_type as u8 instead of enum to save space

Definition at line 254 of file tcpip.h.

◆ type_internal

u8_t pbuf::type_internal

a bit field indicating pbuf type and allocation sources (see PBUF_TYPE_FLAG_*, PBUF_ALLOC_FLAG_* and PBUF_TYPE_ALLOC_SRC_MASK)

Definition at line 208 of file pbuf.h.


The documentation for this struct was generated from the following files:
  • core/common/include/tcpip.h
  • core/ps2ip/include/lwip_include/lwip/pbuf.h