IcmpPacket Class Reference

#include <IcmpPacket.h>

Inheritance diagram for IcmpPacket:

Inheritance graph
[legend]
Collaboration diagram for IcmpPacket:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 IcmpPacket (void)
 ~IcmpPacket (void)
bool parsePacket ()
void assemblePacket ()
string toString ()
unsigned int getMinProtocolSize ()
unsigned char getType ()
unsigned char getCode ()
unsigned short getChecksum ()
Packet::PAYLOAD_BUFFER getData ()
unsigned long getMisc ()
void setType (unsigned char tp)
void setCode (unsigned char cd)
void setChecksum (unsigned short chk)
void setData (Packet::PAYLOAD_BUFFER buf)
void setMisc (unsigned long msc)

Static Public Attributes

static AnonPrimitiveanonType = NULL
static AnonPrimitiveanonCode = NULL
static AnonPrimitiveanonMisc = NULL

Static Private Member Functions

static unsigned short checksum (PICMP_HEADER header, unsigned char *data, int datalen)

Private Attributes

ICMP_HEADER header


Constructor & Destructor Documentation

IcmpPacket::IcmpPacket ( void   ) 

IcmpPacket::~IcmpPacket ( void   ) 


Member Function Documentation

bool IcmpPacket::parsePacket (  )  [virtual]

Implements Packet.

void IcmpPacket::assemblePacket (  )  [virtual]

Implements Packet.

string IcmpPacket::toString (  )  [virtual]

Implements Packet.

unsigned int IcmpPacket::getMinProtocolSize (  )  [virtual]

Implements Packet.

unsigned char IcmpPacket::getType (  ) 

unsigned char IcmpPacket::getCode (  ) 

unsigned short IcmpPacket::getChecksum (  ) 

Packet::PAYLOAD_BUFFER IcmpPacket::getData (  ) 

unsigned long IcmpPacket::getMisc (  ) 

void IcmpPacket::setType ( unsigned char  tp  ) 

void IcmpPacket::setCode ( unsigned char  cd  ) 

void IcmpPacket::setChecksum ( unsigned short  chk  ) 

void IcmpPacket::setData ( Packet::PAYLOAD_BUFFER  buf  ) 

void IcmpPacket::setMisc ( unsigned long  msc  ) 

unsigned short IcmpPacket::checksum ( PICMP_HEADER  header,
unsigned char *  data,
int  datalen 
) [static, private]


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Wed Jun 18 09:40:44 2008 for pktanon by  doxygen 1.5.5