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 *)
voidNetSetChecksum(TUint)
voidNetSetId(TUint)
voidNetSetLength(TUint16)
voidNetSetProtocol(TUint)
TUint8 *OptPtr()
ThdrIP *Ptr(RMBufPacketBase &)
ThdrIP *Ptr(ThdrICMP *)
voidSetChecksum(TUint)
voidSetDF(TUint)
voidSetDstAddr(TUint32)
voidSetFragment(TUint)
voidSetFragment(TUint, TUint)
voidSetHdrLen(TUint)
voidSetId(TUint)
voidSetLength(TUint)
voidSetMF(TUint)
voidSetOffset(TUint)
voidSetProtocol(TUint)
voidSetSrcAddr(TUint32)
voidSetTOS(TUint)
voidSetTtl(TUint)
voidSetVersion(TUint)
voidSetWord0(TUint, TUint, TUint)
voidSetWord1(TUint)
voidSetWord1(TUint, TUint)
voidSetWord1(TUint, TUint, TUint)
voidSetWord2(TUint, TUint)
voidSwapOrder()
voidVJSetChecksum(TUint16)
TUint16 Word0()
TUint16 Word3()
TUint16 Word4()
Public Attributes
TUint16 iData16
TUint32 iData32
TUint8 iData8
Private Attributes
TUint32 iDstAddr
TUint32 iSrcAddr
union ThdrIP::@30u

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)

voidNetSetChecksum(TUintaVal)[inline]

Parameters

TUint aVal

NetSetId(TUint)

voidNetSetId(TUintaVal)[inline]

Parameters

TUint aVal

NetSetLength(TUint16)

voidNetSetLength(TUint16aVal)[inline]

Parameters

TUint16 aVal

NetSetProtocol(TUint)

voidNetSetProtocol(TUintaVal)[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)

voidSetChecksum(TUintaVal)[inline]

Parameters

TUint aVal

SetDF(TUint)

voidSetDF(TUintaVal)[inline]

Parameters

TUint aVal

SetDstAddr(TUint32)

voidSetDstAddr(TUint32aAddr)[inline]

Parameters

TUint32 aAddr

SetFragment(TUint)

voidSetFragment(TUintaVal)[inline]

Parameters

TUint aVal

SetFragment(TUint, TUint)

voidSetFragment(TUintaOffset,
TUintaMF
)[inline]

Parameters

TUint aOffset
TUint aMF

SetHdrLen(TUint)

voidSetHdrLen(TUintaVal)[inline]

Parameters

TUint aVal

SetId(TUint)

voidSetId(TUintaVal)[inline]

Parameters

TUint aVal

SetLength(TUint)

voidSetLength(TUintaVal)[inline]

Parameters

TUint aVal

SetMF(TUint)

voidSetMF(TUintaVal)[inline]

Parameters

TUint aVal

SetOffset(TUint)

voidSetOffset(TUintaVal)[inline]

Parameters

TUint aVal

SetProtocol(TUint)

voidSetProtocol(TUintaVal)[inline]

Parameters

TUint aVal

SetSrcAddr(TUint32)

voidSetSrcAddr(TUint32aAddr)[inline]

Parameters

TUint32 aAddr

SetTOS(TUint)

voidSetTOS(TUintaVal)[inline]

Parameters

TUint aVal

SetTtl(TUint)

voidSetTtl(TUintaVal)[inline]

Parameters

TUint aVal

SetVersion(TUint)

voidSetVersion(TUintaVal)[inline]

Parameters

TUint aVal

SetWord0(TUint, TUint, TUint)

voidSetWord0(TUintaHdrLen,
TUintaTOS,
TUintaLen
)[inline]

Parameters

TUint aHdrLen
TUint aTOS
TUint aLen

SetWord1(TUint)

voidSetWord1(TUintaId)[inline]

Parameters

TUint aId

SetWord1(TUint, TUint)

voidSetWord1(TUintaId,
TUintaDF
)[inline]

Parameters

TUint aId
TUint aDF

SetWord1(TUint, TUint, TUint)

voidSetWord1(TUintaId,
TUintaMF,
TUintaOffset
)[inline]

Parameters

TUint aId
TUint aMF
TUint aOffset

SetWord2(TUint, TUint)

voidSetWord2(TUintaTTL,
TUintaProtocol
)[inline]

Parameters

TUint aTTL
TUint aProtocol

SwapOrder()

voidSwapOrder()

VJSetChecksum(TUint16)

voidVJSetChecksum(TUint16aVal)[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::@30u[private]