TcpPacket Class Reference

#include <TcpPacket.h>

Inheritance diagram for TcpPacket:

Inheritance graph
[legend]
Collaboration diagram for TcpPacket:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TcpPacket (void)
 ~TcpPacket (void)
bool parsePacket ()
void assemblePacket ()
string toString ()
unsigned int getMinProtocolSize ()
unsigned short getSourceport ()
unsigned short getDestport ()
unsigned long getSequencenum ()
unsigned long getAcknum ()
unsigned short getHeaderlength ()
unsigned short getFlags ()
unsigned short getWindowsize ()
unsigned short getChecksum ()
unsigned short getUrgentpointer ()
Packet::PAYLOAD_BUFFER getOptions ()
void setSourceport (unsigned short sourcep)
void setDestport (unsigned short destp)
void setSequencenum (unsigned long seqnum)
void setAcknum (unsigned long aknum)
void setHeaderlength (unsigned short hdlen)
void setFlags (unsigned short flgs)
void setWindowsize (unsigned short wsize)
void setChecksum (unsigned short cksum)
void setUrgentpointer (unsigned short urgpnt)
void setOptions (unsigned char *buf, int len)
void setIpAddresses (IP_ADDR source, IP_ADDR dest)
void setIpAddresses (IPV6_ADDR source, IPV6_ADDR dest)

Static Public Attributes

static AnonPrimitiveanonSourceport = NULL
static AnonPrimitiveanonDestport = NULL
static AnonPrimitiveanonSeqnum = NULL
static AnonPrimitiveanonAcknum = NULL
static AnonPrimitiveanonFlags = NULL
static AnonPrimitiveanonWindowsize = NULL
static AnonPrimitiveanonUrgentpnt = NULL
static AnonPrimitiveanonOptions = NULL

Static Private Member Functions

static unsigned short checksum (PTCP_HEADER header, void *sourceip, void *destip, Packet::PROTOCOL ipproto, unsigned char *options, int optionslen, unsigned char *data, int datalen)

Private Attributes

TCP_HEADER header
Packet::PAYLOAD_BUFFER options
IP_ADDR sourceip
IP_ADDR destip
IPV6_ADDR sourceip6
IPV6_ADDR destip6
Packet::PROTOCOL ipProtocol


Constructor & Destructor Documentation

TcpPacket::TcpPacket ( void   ) 

TcpPacket::~TcpPacket ( void   ) 


Member Function Documentation

bool TcpPacket::parsePacket (  )  [virtual]

Implements Packet.

void TcpPacket::assemblePacket (  )  [virtual]

Implements Packet.

string TcpPacket::toString (  )  [virtual]

Implements Packet.

unsigned int TcpPacket::getMinProtocolSize (  )  [virtual]

Implements Packet.

unsigned short TcpPacket::getSourceport (  ) 

unsigned short TcpPacket::getDestport (  ) 

unsigned long TcpPacket::getSequencenum (  ) 

unsigned long TcpPacket::getAcknum (  ) 

unsigned short TcpPacket::getHeaderlength (  ) 

unsigned short TcpPacket::getFlags (  ) 

unsigned short TcpPacket::getWindowsize (  ) 

unsigned short TcpPacket::getChecksum (  ) 

unsigned short TcpPacket::getUrgentpointer (  ) 

Packet::PAYLOAD_BUFFER TcpPacket::getOptions (  ) 

void TcpPacket::setSourceport ( unsigned short  sourcep  ) 

void TcpPacket::setDestport ( unsigned short  destp  ) 

void TcpPacket::setSequencenum ( unsigned long  seqnum  ) 

void TcpPacket::setAcknum ( unsigned long  aknum  ) 

void TcpPacket::setHeaderlength ( unsigned short  hdlen  ) 

void TcpPacket::setFlags ( unsigned short  flgs  ) 

void TcpPacket::setWindowsize ( unsigned short  wsize  ) 

void TcpPacket::setChecksum ( unsigned short  cksum  ) 

void TcpPacket::setUrgentpointer ( unsigned short  urgpnt  ) 

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

void TcpPacket::setIpAddresses ( IP_ADDR  source,
IP_ADDR  dest 
)

void TcpPacket::setIpAddresses ( IPV6_ADDR  source,
IPV6_ADDR  dest 
)

unsigned short TcpPacket::checksum ( PTCP_HEADER  header,
void *  sourceip,
void *  destip,
Packet::PROTOCOL  ipproto,
unsigned char *  options,
int  optionslen,
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:47 2008 for pktanon by  doxygen 1.5.5