#include <in_chk.h>
class TInet6Checksum : public TInet6Packet |
Public Member Functions | |
---|---|
TInet6Checksum() | |
TInet6Checksum(RMBufChain &) | |
TInet6Checksum(RMBufChain &, TInt) | |
void | ComputeChecksum(RMBufChain &, const RMBufPktInfo *, TInt) |
void | ComputeChecksum() |
TBool | VerifyChecksum(RMBufChain &, const RMBufPktInfo *, TInt) |
TBool | VerifyChecksum() |
Inherited Attributes | |
---|---|
TInet6Packet::iHdr | |
TInet6PacketBase::iAlign | |
TInet6PacketBase::iLength |
Inherited Enumerations | |
---|---|
TInet6PacketBase:TAlign |
TInet6Checksum Template.
This template class provides utilitlies to compute and check IPv6 Upper Layer Checksums These are not merged with the TInet6Packet class, because that class is intended (and is used) for all headers, not just upper layers.
have Checksum() method
have SetChecksum() method
the checkum in header must be aligned to 16 bit word
void | ComputeChecksum | ( | RMBufChain & | aPacket, |
const RMBufPktInfo * | aInfo, | |||
TInt | aOffset = 0 | |||
) |
TBool | VerifyChecksum | ( | RMBufChain & | aPacket, |
const RMBufPktInfo * | aInfo, | |||
TInt | aOffset = 0 | |||
) |