#include <IpPacket.h>
Public Member Functions | |
IpPacket (void) | |
~IpPacket (void) | |
bool | parsePacket () |
void | assemblePacket () |
string | toString () |
unsigned int | getMinProtocolSize () |
unsigned char | getVersion () |
unsigned char | getHeaderlength () |
unsigned char | getTos () |
unsigned short | getTotallen () |
unsigned short | getIdentification () |
unsigned short | getFlags () |
unsigned short | getFragoffset () |
unsigned char | getTtl () |
unsigned char | getProtocol () |
unsigned short | getChecksum () |
IP_ADDR | getSourceip () |
IP_ADDR | getDestip () |
Packet::PAYLOAD_BUFFER | getOptions () |
void | setVersion (unsigned char ver) |
void | setHeaderlength (unsigned char len) |
void | setTos (unsigned char tos) |
void | setTotallen (unsigned short totlen) |
void | setIdentification (unsigned short ident) |
void | setFlags (unsigned short flgs) |
void | setFragoffset (unsigned short fragoff) |
void | setTtl (unsigned char tl) |
void | setProtocol (unsigned char proto) |
void | setChecksum (unsigned short checks) |
void | setSourceip (IP_ADDR sip) |
void | setDestip (IP_ADDR dip) |
void | setOptions (unsigned char *buf, int len) |
Static Public Member Functions | |
static Packet::PROTOCOL | getTransportProtocol (unsigned char proto) |
Static Public Attributes | |
static AnonPrimitive * | anonTos = NULL |
static AnonPrimitive * | anonIdentifier = NULL |
static AnonPrimitive * | anonFlags = NULL |
static AnonPrimitive * | anonFragoffset = NULL |
static AnonPrimitive * | anonTtl = NULL |
static AnonPrimitive * | anonSourceip = NULL |
static AnonPrimitive * | anonDestip = NULL |
static AnonPrimitive * | anonOptions = NULL |
Static Protected Member Functions | |
static unsigned short | checksum (PIP_HEADER ipheader) |
Private Attributes | |
IP_HEADER | header |
Packet::PAYLOAD_BUFFER | options |
IpPacket::IpPacket | ( | void | ) |
IpPacket::~IpPacket | ( | void | ) |
bool IpPacket::parsePacket | ( | ) | [virtual] |
Implements Packet.
void IpPacket::assemblePacket | ( | ) | [virtual] |
Implements Packet.
string IpPacket::toString | ( | ) | [virtual] |
Implements Packet.
unsigned int IpPacket::getMinProtocolSize | ( | ) | [virtual] |
Implements Packet.
Packet::PROTOCOL IpPacket::getTransportProtocol | ( | unsigned char | proto | ) | [static] |
unsigned char IpPacket::getVersion | ( | ) |
unsigned char IpPacket::getHeaderlength | ( | ) |
unsigned char IpPacket::getTos | ( | ) |
unsigned short IpPacket::getTotallen | ( | ) |
unsigned short IpPacket::getIdentification | ( | ) |
unsigned short IpPacket::getFlags | ( | ) |
unsigned short IpPacket::getFragoffset | ( | ) |
unsigned char IpPacket::getTtl | ( | ) |
unsigned char IpPacket::getProtocol | ( | ) |
Reimplemented from Packet.
unsigned short IpPacket::getChecksum | ( | ) |
IP_ADDR IpPacket::getSourceip | ( | ) |
IP_ADDR IpPacket::getDestip | ( | ) |
Packet::PAYLOAD_BUFFER IpPacket::getOptions | ( | ) |
void IpPacket::setVersion | ( | unsigned char | ver | ) |
void IpPacket::setHeaderlength | ( | unsigned char | len | ) |
void IpPacket::setTos | ( | unsigned char | tos | ) |
void IpPacket::setTotallen | ( | unsigned short | totlen | ) |
void IpPacket::setIdentification | ( | unsigned short | ident | ) |
void IpPacket::setFlags | ( | unsigned short | flgs | ) |
void IpPacket::setFragoffset | ( | unsigned short | fragoff | ) |
void IpPacket::setTtl | ( | unsigned char | tl | ) |
void IpPacket::setProtocol | ( | unsigned char | proto | ) |
void IpPacket::setChecksum | ( | unsigned short | checks | ) |
void IpPacket::setSourceip | ( | IP_ADDR | sip | ) |
void IpPacket::setDestip | ( | IP_ADDR | dip | ) |
void IpPacket::setOptions | ( | unsigned char * | buf, | |
int | len | |||
) |
unsigned short IpPacket::checksum | ( | PIP_HEADER | ipheader | ) | [static, protected] |
AnonPrimitive * IpPacket::anonTos = NULL [static] |
AnonPrimitive * IpPacket::anonIdentifier = NULL [static] |
AnonPrimitive * IpPacket::anonFlags = NULL [static] |
AnonPrimitive * IpPacket::anonFragoffset = NULL [static] |
AnonPrimitive * IpPacket::anonTtl = NULL [static] |
AnonPrimitive * IpPacket::anonSourceip = NULL [static] |
AnonPrimitive * IpPacket::anonDestip = NULL [static] |
AnonPrimitive * IpPacket::anonOptions = NULL [static] |
IP_HEADER IpPacket::header [private] |
Packet::PAYLOAD_BUFFER IpPacket::options [private] |