#include <TcpPacket.h>
Public Member Functions | |
TcpPacket (void) | |
~TcpPacket (void) | |
bool | parsePacket () |
void | assemblePacket () |
string | toString () |
unsigned int | getMinProtocolSize () |
unsigned short | getSourceport () |
unsigned short | getDestport () |
unsigned long | getSequencenum () |
unsigned long | getAcknum () |
unsigned short | getHeaderlength () |
unsigned short | getFlags () |
unsigned short | getWindowsize () |
unsigned short | getChecksum () |
unsigned short | getUrgentpointer () |
Packet::PAYLOAD_BUFFER | getOptions () |
void | setSourceport (unsigned short sourcep) |
void | setDestport (unsigned short destp) |
void | setSequencenum (unsigned long seqnum) |
void | setAcknum (unsigned long aknum) |
void | setHeaderlength (unsigned short hdlen) |
void | setFlags (unsigned short flgs) |
void | setWindowsize (unsigned short wsize) |
void | setChecksum (unsigned short cksum) |
void | setUrgentpointer (unsigned short urgpnt) |
void | setOptions (unsigned char *buf, int len) |
void | setIpAddresses (IP_ADDR source, IP_ADDR dest) |
void | setIpAddresses (IPV6_ADDR source, IPV6_ADDR dest) |
Static Public Attributes | |
static AnonPrimitive * | anonSourceport = NULL |
static AnonPrimitive * | anonDestport = NULL |
static AnonPrimitive * | anonSeqnum = NULL |
static AnonPrimitive * | anonAcknum = NULL |
static AnonPrimitive * | anonFlags = NULL |
static AnonPrimitive * | anonWindowsize = NULL |
static AnonPrimitive * | anonUrgentpnt = NULL |
static AnonPrimitive * | anonOptions = NULL |
Static Private Member Functions | |
static unsigned short | checksum (PTCP_HEADER header, void *sourceip, void *destip, Packet::PROTOCOL ipproto, unsigned char *options, int optionslen, unsigned char *data, int datalen) |
Private Attributes | |
TCP_HEADER | header |
Packet::PAYLOAD_BUFFER | options |
IP_ADDR | sourceip |
IP_ADDR | destip |
IPV6_ADDR | sourceip6 |
IPV6_ADDR | destip6 |
Packet::PROTOCOL | ipProtocol |
TcpPacket::TcpPacket | ( | void | ) |
TcpPacket::~TcpPacket | ( | void | ) |
bool TcpPacket::parsePacket | ( | ) | [virtual] |
Implements Packet.
void TcpPacket::assemblePacket | ( | ) | [virtual] |
Implements Packet.
string TcpPacket::toString | ( | ) | [virtual] |
Implements Packet.
unsigned int TcpPacket::getMinProtocolSize | ( | ) | [virtual] |
Implements Packet.
unsigned short TcpPacket::getSourceport | ( | ) |
unsigned short TcpPacket::getDestport | ( | ) |
unsigned long TcpPacket::getSequencenum | ( | ) |
unsigned long TcpPacket::getAcknum | ( | ) |
unsigned short TcpPacket::getHeaderlength | ( | ) |
unsigned short TcpPacket::getFlags | ( | ) |
unsigned short TcpPacket::getWindowsize | ( | ) |
unsigned short TcpPacket::getChecksum | ( | ) |
unsigned short TcpPacket::getUrgentpointer | ( | ) |
Packet::PAYLOAD_BUFFER TcpPacket::getOptions | ( | ) |
void TcpPacket::setSourceport | ( | unsigned short | sourcep | ) |
void TcpPacket::setDestport | ( | unsigned short | destp | ) |
void TcpPacket::setSequencenum | ( | unsigned long | seqnum | ) |
void TcpPacket::setAcknum | ( | unsigned long | aknum | ) |
void TcpPacket::setHeaderlength | ( | unsigned short | hdlen | ) |
void TcpPacket::setFlags | ( | unsigned short | flgs | ) |
void TcpPacket::setWindowsize | ( | unsigned short | wsize | ) |
void TcpPacket::setChecksum | ( | unsigned short | cksum | ) |
void TcpPacket::setUrgentpointer | ( | unsigned short | urgpnt | ) |
void TcpPacket::setOptions | ( | unsigned char * | buf, | |
int | len | |||
) |
unsigned short TcpPacket::checksum | ( | PTCP_HEADER | header, | |
void * | sourceip, | |||
void * | destip, | |||
Packet::PROTOCOL | ipproto, | |||
unsigned char * | options, | |||
int | optionslen, | |||
unsigned char * | data, | |||
int | datalen | |||
) | [static, private] |
AnonPrimitive * TcpPacket::anonSourceport = NULL [static] |
AnonPrimitive * TcpPacket::anonDestport = NULL [static] |
AnonPrimitive * TcpPacket::anonSeqnum = NULL [static] |
AnonPrimitive * TcpPacket::anonAcknum = NULL [static] |
AnonPrimitive * TcpPacket::anonFlags = NULL [static] |
AnonPrimitive * TcpPacket::anonWindowsize = NULL [static] |
AnonPrimitive * TcpPacket::anonUrgentpnt = NULL [static] |
AnonPrimitive * TcpPacket::anonOptions = NULL [static] |
TCP_HEADER TcpPacket::header [private] |
Packet::PAYLOAD_BUFFER TcpPacket::options [private] |
IP_ADDR TcpPacket::sourceip [private] |
IP_ADDR TcpPacket::destip [private] |
IPV6_ADDR TcpPacket::sourceip6 [private] |
IPV6_ADDR TcpPacket::destip6 [private] |
Packet::PROTOCOL TcpPacket::ipProtocol [private] |