#include <IcmpPacket.h>
Public Member Functions | |
IcmpPacket (void) | |
~IcmpPacket (void) | |
bool | parsePacket () |
void | assemblePacket () |
string | toString () |
unsigned int | getMinProtocolSize () |
unsigned char | getType () |
unsigned char | getCode () |
unsigned short | getChecksum () |
Packet::PAYLOAD_BUFFER | getData () |
unsigned long | getMisc () |
void | setType (unsigned char tp) |
void | setCode (unsigned char cd) |
void | setChecksum (unsigned short chk) |
void | setData (Packet::PAYLOAD_BUFFER buf) |
void | setMisc (unsigned long msc) |
Static Public Attributes | |
static AnonPrimitive * | anonType = NULL |
static AnonPrimitive * | anonCode = NULL |
static AnonPrimitive * | anonMisc = NULL |
Static Private Member Functions | |
static unsigned short | checksum (PICMP_HEADER header, unsigned char *data, int datalen) |
Private Attributes | |
ICMP_HEADER | header |
IcmpPacket::IcmpPacket | ( | void | ) |
IcmpPacket::~IcmpPacket | ( | void | ) |
bool IcmpPacket::parsePacket | ( | ) | [virtual] |
Implements Packet.
void IcmpPacket::assemblePacket | ( | ) | [virtual] |
Implements Packet.
string IcmpPacket::toString | ( | ) | [virtual] |
Implements Packet.
unsigned int IcmpPacket::getMinProtocolSize | ( | ) | [virtual] |
Implements Packet.
unsigned char IcmpPacket::getType | ( | ) |
unsigned char IcmpPacket::getCode | ( | ) |
unsigned short IcmpPacket::getChecksum | ( | ) |
Packet::PAYLOAD_BUFFER IcmpPacket::getData | ( | ) |
unsigned long IcmpPacket::getMisc | ( | ) |
void IcmpPacket::setType | ( | unsigned char | tp | ) |
void IcmpPacket::setCode | ( | unsigned char | cd | ) |
void IcmpPacket::setChecksum | ( | unsigned short | chk | ) |
void IcmpPacket::setData | ( | Packet::PAYLOAD_BUFFER | buf | ) |
void IcmpPacket::setMisc | ( | unsigned long | msc | ) |
unsigned short IcmpPacket::checksum | ( | PICMP_HEADER | header, | |
unsigned char * | data, | |||
int | datalen | |||
) | [static, private] |
AnonPrimitive * IcmpPacket::anonType = NULL [static] |
AnonPrimitive * IcmpPacket::anonCode = NULL [static] |
AnonPrimitive * IcmpPacket::anonMisc = NULL [static] |
ICMP_HEADER IcmpPacket::header [private] |