EthernetPacket Class Reference

#include <EthernetPacket.h>

Inheritance diagram for EthernetPacket:

Inheritance graph
[legend]
Collaboration diagram for EthernetPacket:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EthernetPacket (void)
 ~EthernetPacket (void)
bool parsePacket ()
void assemblePacket ()
string toString ()
unsigned int getMinProtocolSize ()
MAC_ADDR getSourceMac ()
MAC_ADDR getDestMac ()
unsigned short getType ()
void setSourceMac (MAC_ADDR mac)
void setDestMac (MAC_ADDR mac)
void setType (unsigned short tp)

Static Public Attributes

static AnonPrimitiveanonSourceMac = NULL
static AnonPrimitiveanonDestMac = NULL
static AnonPrimitiveanonType = NULL

Private Attributes

ETHERNET_HEADER header


Constructor & Destructor Documentation

EthernetPacket::EthernetPacket ( void   ) 

EthernetPacket::~EthernetPacket ( void   ) 


Member Function Documentation

bool EthernetPacket::parsePacket (  )  [virtual]

Implements Packet.

void EthernetPacket::assemblePacket (  )  [virtual]

Implements Packet.

string EthernetPacket::toString (  )  [virtual]

Implements Packet.

unsigned int EthernetPacket::getMinProtocolSize (  )  [virtual]

Implements Packet.

MAC_ADDR EthernetPacket::getSourceMac (  ) 

MAC_ADDR EthernetPacket::getDestMac (  ) 

unsigned short EthernetPacket::getType (  ) 

void EthernetPacket::setSourceMac ( MAC_ADDR  mac  ) 

void EthernetPacket::setDestMac ( MAC_ADDR  mac  ) 

void EthernetPacket::setType ( unsigned short  tp  ) 


Member Data Documentation


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

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