
Packet Fragment (Frag) Object
A-18
Get the Buffer Status Parameters
FragGetBufParams
Syntax
UINT8 *FragGetBufParams( HANDLE hFrag, uint *pBufferLen,
uint *pValidLen, uint *pDataOffset );
Return Value
Pointer to memory buffer.
Description
Called to get information about the buffer associated with the Frag. The func-
tion always returns a pointer to the buffer. The remaining parameters are re-
turned to the supplied pointers when supplied. See the synopsis section for
more detail.
Get the Next Frag in a Chain of Frag Objects
FragGetNext
Syntax
HANDLE FragGetNext( HANDLE hFrag );
Return Value
Handle to next Frag or NULL if none.
Description
Called to get a handle to the next Frag object in a chain of Frag objects. Frag
objects are kept in chains in several areas of the stack including IP reassembly,
TCP reassembly, and UDP/RAW socket buffering.
Get the Previous Frag in a Chain of Frag Objects
FragGetPrev
Syntax
HANDLE FragGetPrev( HANDLE hFrag );
Return Value
nothing
Description
Called to get a handle to the previous Frag object in a chain of Frag objects.
Frag objects are kept in chains in several areas of the stack including IP reas-
sembly, TCP reassembly, and UDP/RAW socket buffering.
Set Frag Auxiliary Data Value 1
FragSetAux1
Syntax
void FragSetAux1( HANDLE hFrag, UINT32 Data );
Return Value
nothing
Description
Called to set auxiliary data associated with the Frag. This is used by TCP and
UDP to track buffer data and should not be used for other purposes.