#include <EthernetPacket.h>
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 AnonPrimitive * | anonSourceMac = NULL |
static AnonPrimitive * | anonDestMac = NULL |
static AnonPrimitive * | anonType = NULL |
Private Attributes | |
ETHERNET_HEADER | header |
EthernetPacket::EthernetPacket | ( | void | ) |
EthernetPacket::~EthernetPacket | ( | void | ) |
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 | ) |
AnonPrimitive * EthernetPacket::anonSourceMac = NULL [static] |
AnonPrimitive * EthernetPacket::anonDestMac = NULL [static] |
AnonPrimitive * EthernetPacket::anonType = NULL [static] |
ETHERNET_HEADER EthernetPacket::header [private] |