IpPacket Class Reference

#include <IpPacket.h>

Inheritance diagram for IpPacket:

Inheritance graph
[legend]
Collaboration diagram for IpPacket:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 IpPacket (void)
 ~IpPacket (void)
bool parsePacket ()
void assemblePacket ()
string toString ()
unsigned int getMinProtocolSize ()
unsigned char getVersion ()
unsigned char getHeaderlength ()
unsigned char getTos ()
unsigned short getTotallen ()
unsigned short getIdentification ()
unsigned short getFlags ()
unsigned short getFragoffset ()
unsigned char getTtl ()
unsigned char getProtocol ()
unsigned short getChecksum ()
IP_ADDR getSourceip ()
IP_ADDR getDestip ()
Packet::PAYLOAD_BUFFER getOptions ()
void setVersion (unsigned char ver)
void setHeaderlength (unsigned char len)
void setTos (unsigned char tos)
void setTotallen (unsigned short totlen)
void setIdentification (unsigned short ident)
void setFlags (unsigned short flgs)
void setFragoffset (unsigned short fragoff)
void setTtl (unsigned char tl)
void setProtocol (unsigned char proto)
void setChecksum (unsigned short checks)
void setSourceip (IP_ADDR sip)
void setDestip (IP_ADDR dip)
void setOptions (unsigned char *buf, int len)

Static Public Member Functions

static Packet::PROTOCOL getTransportProtocol (unsigned char proto)

Static Public Attributes

static AnonPrimitiveanonTos = NULL
static AnonPrimitiveanonIdentifier = NULL
static AnonPrimitiveanonFlags = NULL
static AnonPrimitiveanonFragoffset = NULL
static AnonPrimitiveanonTtl = NULL
static AnonPrimitiveanonSourceip = NULL
static AnonPrimitiveanonDestip = NULL
static AnonPrimitiveanonOptions = NULL

Static Protected Member Functions

static unsigned short checksum (PIP_HEADER ipheader)

Private Attributes

IP_HEADER header
Packet::PAYLOAD_BUFFER options


Constructor & Destructor Documentation

IpPacket::IpPacket ( void   ) 

IpPacket::~IpPacket ( void   ) 


Member Function Documentation

bool IpPacket::parsePacket (  )  [virtual]

Implements Packet.

void IpPacket::assemblePacket (  )  [virtual]

Implements Packet.

string IpPacket::toString (  )  [virtual]

Implements Packet.

unsigned int IpPacket::getMinProtocolSize (  )  [virtual]

Implements Packet.

Packet::PROTOCOL IpPacket::getTransportProtocol ( unsigned char  proto  )  [static]

unsigned char IpPacket::getVersion (  ) 

unsigned char IpPacket::getHeaderlength (  ) 

unsigned char IpPacket::getTos (  ) 

unsigned short IpPacket::getTotallen (  ) 

unsigned short IpPacket::getIdentification (  ) 

unsigned short IpPacket::getFlags (  ) 

unsigned short IpPacket::getFragoffset (  ) 

unsigned char IpPacket::getTtl (  ) 

unsigned char IpPacket::getProtocol (  ) 

Reimplemented from Packet.

unsigned short IpPacket::getChecksum (  ) 

IP_ADDR IpPacket::getSourceip (  ) 

IP_ADDR IpPacket::getDestip (  ) 

Packet::PAYLOAD_BUFFER IpPacket::getOptions (  ) 

void IpPacket::setVersion ( unsigned char  ver  ) 

void IpPacket::setHeaderlength ( unsigned char  len  ) 

void IpPacket::setTos ( unsigned char  tos  ) 

void IpPacket::setTotallen ( unsigned short  totlen  ) 

void IpPacket::setIdentification ( unsigned short  ident  ) 

void IpPacket::setFlags ( unsigned short  flgs  ) 

void IpPacket::setFragoffset ( unsigned short  fragoff  ) 

void IpPacket::setTtl ( unsigned char  tl  ) 

void IpPacket::setProtocol ( unsigned char  proto  ) 

void IpPacket::setChecksum ( unsigned short  checks  ) 

void IpPacket::setSourceip ( IP_ADDR  sip  ) 

void IpPacket::setDestip ( IP_ADDR  dip  ) 

void IpPacket::setOptions ( unsigned char *  buf,
int  len 
)

unsigned short IpPacket::checksum ( PIP_HEADER  ipheader  )  [static, protected]


Member Data Documentation

AnonPrimitive * IpPacket::anonTos = NULL [static]

AnonPrimitive * IpPacket::anonTtl = NULL [static]


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