UdpPacket Class Reference

#include <UdpPacket.h>

Inheritance diagram for UdpPacket:

Inheritance graph
[legend]
Collaboration diagram for UdpPacket:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 UdpPacket (void)
 ~UdpPacket (void)
bool parsePacket ()
void assemblePacket ()
string toString ()
unsigned int getMinProtocolSize ()
unsigned short getSourceport ()
unsigned short getDestport ()
unsigned short getLen ()
unsigned short getChecksum ()
void setSourceport (unsigned short sp)
void setDestport (unsigned short dp)
void setLen (unsigned short len)
void setChecksum (unsigned short chksum)
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 Private Member Functions

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

Private Attributes

UDP_HEADER header
IP_ADDR sourceip
IP_ADDR destip
IPV6_ADDR sourceip6
IPV6_ADDR destip6
Packet::PROTOCOL ipProtocol


Constructor & Destructor Documentation

UdpPacket::UdpPacket ( void   ) 

UdpPacket::~UdpPacket ( void   ) 


Member Function Documentation

bool UdpPacket::parsePacket (  )  [virtual]

Implements Packet.

void UdpPacket::assemblePacket (  )  [virtual]

Implements Packet.

string UdpPacket::toString (  )  [virtual]

Implements Packet.

unsigned int UdpPacket::getMinProtocolSize (  )  [virtual]

Implements Packet.

unsigned short UdpPacket::getSourceport (  ) 

unsigned short UdpPacket::getDestport (  ) 

unsigned short UdpPacket::getLen (  ) 

unsigned short UdpPacket::getChecksum (  ) 

void UdpPacket::setSourceport ( unsigned short  sp  ) 

void UdpPacket::setDestport ( unsigned short  dp  ) 

void UdpPacket::setLen ( unsigned short  len  ) 

void UdpPacket::setChecksum ( unsigned short  chksum  ) 

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

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

unsigned short UdpPacket::checksum ( PUDP_HEADER  header,
void *  sourceip,
void *  destip,
Packet::PROTOCOL  ipproto,
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