NetBurner 3.5.6
PDF Version
IPv6FrameProcessingStruct Struct Reference

IPv6 frame processing structure for packet analysis and header walking. More...

#include <ipv6_interface.h>

Public Member Functions

void free_proc_struct ()
 Free the processing structure and associated resources.
 
void release ()
 Release buffer pool resources.
 
uint8_t WalkNextHeader (int *pError_offset=NULL)
 Walk through IPv6 extension headers to the next header.
 
bool DestOptHasError (puint8_t pData, int *pError_offset)
 Check destination options header for errors.
 
bool HopByHopParseHasError (puint8_t pData, int *pError_offset)
 Check hop-by-hop options header for errors.
 
bool RouterHeaderParseHasError (puint8_t pData, int *pError_offset)
 Check routing header for errors.
 
 IPv6FrameProcessingStruct (PoolPtr pp)
 Constructor with buffer pool.
 
 IPv6FrameProcessingStruct ()
 Default constructor.
 
puint8_t GetDataPointer ()
 Get pointer to frame data.
 
EFRAME * GetEframe ()
 Get pointer to Ethernet frame.
 

Public Attributes

PoolPtr root_pp
 Root buffer pool pointer.
 
IP6FRAME * pIPf
 Pointer to IPv6 frame header.
 
uint8_t * pData
 Pointer to current data location.
 
uint16_t nDataLen
 Length of current data segment.
 
uint8_t * pLargeData
 Used for fragments larger than 1500 bytes.
 

Detailed Description

IPv6 frame processing structure for packet analysis and header walking.

This structure contains all the necessary components for processing IPv6 packets, including buffer management and header parsing capabilities.

Constructor & Destructor Documentation

◆ IPv6FrameProcessingStruct()

IPv6FrameProcessingStruct::IPv6FrameProcessingStruct ( PoolPtr pp)

Constructor with buffer pool.

Parameters
ppBuffer pool pointer

Member Function Documentation

◆ DestOptHasError()

bool IPv6FrameProcessingStruct::DestOptHasError ( puint8_t pData,
int * pError_offset )

Check destination options header for errors.

Parameters
pDataPointer to header data
pError_offsetOptional pointer to store error offset location
Returns
true if errors found, false otherwise

◆ GetDataPointer()

puint8_t IPv6FrameProcessingStruct::GetDataPointer ( )
inline

Get pointer to frame data.

Returns
Pointer to frame data or NULL if not available

◆ GetEframe()

EFRAME * IPv6FrameProcessingStruct::GetEframe ( )
inline

Get pointer to Ethernet frame.

Returns
Pointer to EFRAME or NULL if not available

◆ HopByHopParseHasError()

bool IPv6FrameProcessingStruct::HopByHopParseHasError ( puint8_t pData,
int * pError_offset )

Check hop-by-hop options header for errors.

Parameters
pDataPointer to header data
pError_offsetOptional pointer to store error offset location
Returns
true if errors found, false otherwise

◆ RouterHeaderParseHasError()

bool IPv6FrameProcessingStruct::RouterHeaderParseHasError ( puint8_t pData,
int * pError_offset )

Check routing header for errors.

Parameters
pDataPointer to header data
pError_offsetOptional pointer to store error offset location
Returns
true if errors found, false otherwise

◆ WalkNextHeader()

uint8_t IPv6FrameProcessingStruct::WalkNextHeader ( int * pError_offset = NULL)

Walk through IPv6 extension headers to the next header.

Parameters
pError_offsetOptional pointer to store error offset location
Returns
Next header type value

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