ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
PBuf Struct Reference

#include <tcpip.h>

+ Collaboration diagram for PBuf:

Data Fields

struct pbufnext
 
void * payload
 
u16 tot_len
 
u16 len
 
u8 type
 
u8 flags
 
u16 ref
 

Detailed Description

Main packet buffer struct

Definition at line 165 of file tcpip.h.

Field Documentation

◆ flags

u8 PBuf::flags

misc flags

Definition at line 188 of file tcpip.h.

◆ len

u16 PBuf::len

length of this buffer

Definition at line 182 of file tcpip.h.

Referenced by AfterTxPacket(), NextTxPacket(), and SMapLowLevelOutput().

◆ next

struct pbuf* PBuf::next

next pbuf in singly linked pbuf chain

Definition at line 167 of file tcpip.h.

Referenced by AfterTxPacket(), DeQTxPacket(), and EnQTxPacket().

◆ payload

void* PBuf::payload

pointer to the actual data in the buffer

Definition at line 170 of file tcpip.h.

Referenced by AfterTxPacket(), AllocRxPacket(), and NextTxPacket().

◆ ref

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 195 of file tcpip.h.

◆ tot_len

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 179 of file tcpip.h.

Referenced by SMapLowLevelOutput().

◆ type

u8 PBuf::type

pbuf_type as u8 instead of enum to save space

Definition at line 185 of file tcpip.h.


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