ArpPacket Class Reference

#include <ArpPacket.h>

Inheritance diagram for ArpPacket:

Inheritance graph
[legend]
Collaboration diagram for ArpPacket:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ArpPacket ()
 ~ArpPacket ()
bool parsePacket ()
void assemblePacket ()
string toString ()
unsigned int getMinProtocolSize ()
unsigned short getHardwaretype ()
unsigned short getProtocoltype ()
unsigned char getHardwareaddrlen ()
unsigned char getProtocoladdrlen ()
unsigned short getOpcode ()
MAC_ADDR getSourcemac ()
IP_ADDR getSourceip ()
MAC_ADDR getDestmac ()
IP_ADDR getDestip ()
void setHardwaretype (unsigned short hwtype)
void setProtocoltype (unsigned short prototype)
void setHardwareaddrlen (unsigned char hwlen)
void setProtocoladdrlen (unsigned char protolen)
void setOpcode (unsigned short opcode)
void setSourcemac (MAC_ADDR sourcemac)
void setSourceip (IP_ADDR sourceip)
void setDestmac (MAC_ADDR destmac)
void setDestip (IP_ADDR destip)

Static Public Attributes

static AnonPrimitiveanonHardwaretype = NULL
static AnonPrimitiveanonProtocoltype = NULL
static AnonPrimitiveanonHardwareaddrlen = NULL
static AnonPrimitiveanonProtoaddrlen = NULL
static AnonPrimitiveanonOpcode = NULL
static AnonPrimitiveanonSourcemac = NULL
static AnonPrimitiveanonSourceip = NULL
static AnonPrimitiveanonDestmac = NULL
static AnonPrimitiveanonDestip = NULL

Private Attributes

ARP_HEADER header


Constructor & Destructor Documentation

ArpPacket::ArpPacket (  ) 

ArpPacket::~ArpPacket (  ) 


Member Function Documentation

bool ArpPacket::parsePacket (  )  [virtual]

Implements Packet.

void ArpPacket::assemblePacket (  )  [virtual]

Implements Packet.

string ArpPacket::toString (  )  [virtual]

Implements Packet.

unsigned int ArpPacket::getMinProtocolSize (  )  [virtual]

Implements Packet.

unsigned short ArpPacket::getHardwaretype (  ) 

unsigned short ArpPacket::getProtocoltype (  ) 

unsigned char ArpPacket::getHardwareaddrlen (  ) 

unsigned char ArpPacket::getProtocoladdrlen (  ) 

unsigned short ArpPacket::getOpcode (  ) 

MAC_ADDR ArpPacket::getSourcemac (  ) 

IP_ADDR ArpPacket::getSourceip (  ) 

MAC_ADDR ArpPacket::getDestmac (  ) 

IP_ADDR ArpPacket::getDestip (  ) 

void ArpPacket::setHardwaretype ( unsigned short  hwtype  ) 

void ArpPacket::setProtocoltype ( unsigned short  prototype  ) 

void ArpPacket::setHardwareaddrlen ( unsigned char  hwlen  ) 

void ArpPacket::setProtocoladdrlen ( unsigned char  protolen  ) 

void ArpPacket::setOpcode ( unsigned short  opcode  ) 

void ArpPacket::setSourcemac ( MAC_ADDR  sourcemac  ) 

void ArpPacket::setSourceip ( IP_ADDR  sourceip  ) 

void ArpPacket::setDestmac ( MAC_ADDR  destmac  ) 

void ArpPacket::setDestip ( IP_ADDR  destip  ) 


Member Data Documentation


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

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