ThdrIP Class Reference

class ThdrIP

Manipulate fields in an IP packet header. Host byte order is assumed.

Public Member Functions
TInt CopyOptions ( ThdrIP *)
TInt CopyOptionsCount ()
TUint8 * EndPtr ()
TUint GetChecksum ()
TUint GetDF ()
TUint32 GetDstAddr ()
TUint GetFragment ()
TUint GetHdrLen ()
ThdrIP * GetHeader ( RMBufChain &)
TUint GetId ()
TUint GetLength ()
TUint GetMF ()
TUint GetOffset ()
TUint8 * GetOptions ()
TUint GetProtocol ()
TUint32 GetSrcAddr ()
TUint GetTOS ()
TUint GetTTL ()
TUint GetVersion ()
TBool IsOptCopied ( TUint8 *)
TUint8 * NetEndPtr ()
TUint NetGetChecksum ()
TUint32 NetGetDstAddr ()
TUint NetGetFragment ()
TUint NetGetHdrLen ()
ThdrIP * NetGetHeader ( RMBufChain &)
TUint NetGetId ()
TUint16 NetGetLength ()
TUint NetGetProtocol ()
TUint32 NetGetSrcAddr ()
TUint NetGetVersion ()
ThdrIP * NetPtr ( ThdrIP *)
void NetSetChecksum ( TUint )
void NetSetId ( TUint )
void NetSetLength ( TUint16 )
void NetSetProtocol ( TUint )
TUint8 * OptPtr ()
ThdrIP * Ptr ( RMBufPacketBase &)
ThdrIP * Ptr ( ThdrICMP *)
void SetChecksum ( TUint )
void SetDF ( TUint )
void SetDstAddr ( TUint32 )
void SetFragment ( TUint )
void SetFragment ( TUint , TUint )
void SetHdrLen ( TUint )
void SetId ( TUint )
void SetLength ( TUint )
void SetMF ( TUint )
void SetOffset ( TUint )
void SetProtocol ( TUint )
void SetSrcAddr ( TUint32 )
void SetTOS ( TUint )
void SetTtl ( TUint )
void SetVersion ( TUint )
void SetWord0 ( TUint , TUint , TUint )
void SetWord1 ( TUint )
void SetWord1 ( TUint , TUint )
void SetWord1 ( TUint , TUint , TUint )
void SetWord2 ( TUint , TUint )
void SwapOrder ()
void VJSetChecksum ( TUint16 )
TUint16 Word0 ()
TUint16 Word3 ()
TUint16 Word4 ()
Public Attributes
TUint16 iData16
TUint32 iData32
TUint8 iData8
Private Attributes
TUint32 iDstAddr
TUint32 iSrcAddr
union ThdrIP::@30 u

Member Functions Documentation

CopyOptions(ThdrIP *)

TInt CopyOptions ( ThdrIP * aDstPtr )

Parameters

ThdrIP * aDstPtr

CopyOptionsCount()

TInt CopyOptionsCount ( )

EndPtr()

TUint8 * EndPtr ( ) [inline]

GetChecksum()

TUint GetChecksum ( ) [inline]

GetDF()

TUint GetDF ( ) [inline]

GetDstAddr()

TUint32 GetDstAddr ( ) [inline]

GetFragment()

TUint GetFragment ( ) [inline]

GetHdrLen()

TUint GetHdrLen ( ) [inline]

GetHeader(RMBufChain &)

ThdrIP * GetHeader ( RMBufChain & aChain ) [static]

Parameters

RMBufChain & aChain

GetId()

TUint GetId ( ) [inline]

GetLength()

TUint GetLength ( ) [inline]

GetMF()

TUint GetMF ( ) [inline]

GetOffset()

TUint GetOffset ( ) [inline]

GetOptions()

TUint8 * GetOptions ( ) [inline]

GetProtocol()

TUint GetProtocol ( ) [inline]

GetSrcAddr()

TUint32 GetSrcAddr ( ) [inline]

GetTOS()

TUint GetTOS ( ) [inline]

GetTTL()

TUint GetTTL ( ) [inline]

GetVersion()

TUint GetVersion ( ) [inline]

IsOptCopied(TUint8 *)

TBool IsOptCopied ( TUint8 * aBuf ) [static, inline]

Parameters

TUint8 * aBuf

NetEndPtr()

TUint8 * NetEndPtr ( ) [inline]

NetGetChecksum()

TUint NetGetChecksum ( ) [inline]

NetGetDstAddr()

TUint32 NetGetDstAddr ( ) [inline]

NetGetFragment()

TUint NetGetFragment ( ) [inline]

NetGetHdrLen()

TUint NetGetHdrLen ( ) [inline]

NetGetHeader(RMBufChain &)

ThdrIP * NetGetHeader ( RMBufChain & aChain ) [static]

Parameters

RMBufChain & aChain

NetGetId()

TUint NetGetId ( ) [inline]

NetGetLength()

TUint16 NetGetLength ( ) [inline]

NetGetProtocol()

TUint NetGetProtocol ( ) [inline]

NetGetSrcAddr()

TUint32 NetGetSrcAddr ( ) [inline]

NetGetVersion()

TUint NetGetVersion ( ) [inline]

NetPtr(ThdrIP *)

ThdrIP * NetPtr ( ThdrIP * aHdr ) [static, inline]

Parameters

ThdrIP * aHdr

NetSetChecksum(TUint)

void NetSetChecksum ( TUint aVal ) [inline]

Parameters

TUint aVal

NetSetId(TUint)

void NetSetId ( TUint aVal ) [inline]

Parameters

TUint aVal

NetSetLength(TUint16)

void NetSetLength ( TUint16 aVal ) [inline]

Parameters

TUint16 aVal

NetSetProtocol(TUint)

void NetSetProtocol ( TUint aVal ) [inline]

Parameters

TUint aVal

OptPtr()

TUint8 * OptPtr ( ) [inline]

Ptr(RMBufPacketBase &)

ThdrIP * Ptr ( RMBufPacketBase & aPacket ) [static, inline]

Parameters

RMBufPacketBase & aPacket

Ptr(ThdrICMP *)

ThdrIP * Ptr ( ThdrICMP * aHdr ) [static, inline]

Parameters

ThdrICMP * aHdr

SetChecksum(TUint)

void SetChecksum ( TUint aVal ) [inline]

Parameters

TUint aVal

SetDF(TUint)

void SetDF ( TUint aVal ) [inline]

Parameters

TUint aVal

SetDstAddr(TUint32)

void SetDstAddr ( TUint32 aAddr ) [inline]

Parameters

TUint32 aAddr

SetFragment(TUint)

void SetFragment ( TUint aVal ) [inline]

Parameters

TUint aVal

SetFragment(TUint, TUint)

void SetFragment ( TUint aOffset,
TUint aMF
) [inline]

Parameters

TUint aOffset
TUint aMF

SetHdrLen(TUint)

void SetHdrLen ( TUint aVal ) [inline]

Parameters

TUint aVal

SetId(TUint)

void SetId ( TUint aVal ) [inline]

Parameters

TUint aVal

SetLength(TUint)

void SetLength ( TUint aVal ) [inline]

Parameters

TUint aVal

SetMF(TUint)

void SetMF ( TUint aVal ) [inline]

Parameters

TUint aVal

SetOffset(TUint)

void SetOffset ( TUint aVal ) [inline]

Parameters

TUint aVal

SetProtocol(TUint)

void SetProtocol ( TUint aVal ) [inline]

Parameters

TUint aVal

SetSrcAddr(TUint32)

void SetSrcAddr ( TUint32 aAddr ) [inline]

Parameters

TUint32 aAddr

SetTOS(TUint)

void SetTOS ( TUint aVal ) [inline]

Parameters

TUint aVal

SetTtl(TUint)

void SetTtl ( TUint aVal ) [inline]

Parameters

TUint aVal

SetVersion(TUint)

void SetVersion ( TUint aVal ) [inline]

Parameters

TUint aVal

SetWord0(TUint, TUint, TUint)

void SetWord0 ( TUint aHdrLen,
TUint aTOS,
TUint aLen
) [inline]

Parameters

TUint aHdrLen
TUint aTOS
TUint aLen

SetWord1(TUint)

void SetWord1 ( TUint aId ) [inline]

Parameters

TUint aId

SetWord1(TUint, TUint)

void SetWord1 ( TUint aId,
TUint aDF
) [inline]

Parameters

TUint aId
TUint aDF

SetWord1(TUint, TUint, TUint)

void SetWord1 ( TUint aId,
TUint aMF,
TUint aOffset
) [inline]

Parameters

TUint aId
TUint aMF
TUint aOffset

SetWord2(TUint, TUint)

void SetWord2 ( TUint aTTL,
TUint aProtocol
) [inline]

Parameters

TUint aTTL
TUint aProtocol

SwapOrder()

void SwapOrder ( )

VJSetChecksum(TUint16)

void VJSetChecksum ( TUint16 aVal ) [inline]

Parameters

TUint16 aVal

Word0()

TUint16 Word0 ( ) [inline]

Word3()

TUint16 Word3 ( ) [inline]

Word4()

TUint16 Word4 ( ) [inline]

Member Data Documentation

TUint16 iData16

TUint16 iData16

TUint32 iData32

TUint32 iData32

TUint8 iData8

TUint8 iData8

TUint32 iDstAddr

TUint32 iDstAddr [private]

TUint32 iSrcAddr

TUint32 iSrcAddr [private]

union ThdrIP::@30 u

union ThdrIP::@30 u [private]