#include <UdpPacket.h>
Public Member Functions | |
UdpPacket (void) | |
~UdpPacket (void) | |
bool | parsePacket () |
void | assemblePacket () |
string | toString () |
unsigned int | getMinProtocolSize () |
unsigned short | getSourceport () |
unsigned short | getDestport () |
unsigned short | getLen () |
unsigned short | getChecksum () |
void | setSourceport (unsigned short sp) |
void | setDestport (unsigned short dp) |
void | setLen (unsigned short len) |
void | setChecksum (unsigned short chksum) |
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 Private Member Functions | |
static unsigned short | checksum (PUDP_HEADER header, void *sourceip, void *destip, Packet::PROTOCOL ipproto, unsigned char *data, int datalen) |
Private Attributes | |
UDP_HEADER | header |
IP_ADDR | sourceip |
IP_ADDR | destip |
IPV6_ADDR | sourceip6 |
IPV6_ADDR | destip6 |
Packet::PROTOCOL | ipProtocol |
UdpPacket::UdpPacket | ( | void | ) |
UdpPacket::~UdpPacket | ( | void | ) |
bool UdpPacket::parsePacket | ( | ) | [virtual] |
Implements Packet.
void UdpPacket::assemblePacket | ( | ) | [virtual] |
Implements Packet.
string UdpPacket::toString | ( | ) | [virtual] |
Implements Packet.
unsigned int UdpPacket::getMinProtocolSize | ( | ) | [virtual] |
Implements Packet.
unsigned short UdpPacket::getSourceport | ( | ) |
unsigned short UdpPacket::getDestport | ( | ) |
unsigned short UdpPacket::getLen | ( | ) |
unsigned short UdpPacket::getChecksum | ( | ) |
void UdpPacket::setSourceport | ( | unsigned short | sp | ) |
void UdpPacket::setDestport | ( | unsigned short | dp | ) |
void UdpPacket::setLen | ( | unsigned short | len | ) |
void UdpPacket::setChecksum | ( | unsigned short | chksum | ) |
unsigned short UdpPacket::checksum | ( | PUDP_HEADER | header, | |
void * | sourceip, | |||
void * | destip, | |||
Packet::PROTOCOL | ipproto, | |||
unsigned char * | data, | |||
int | datalen | |||
) | [static, private] |
AnonPrimitive * UdpPacket::anonSourceport = NULL [static] |
AnonPrimitive * UdpPacket::anonDestport = NULL [static] |
UDP_HEADER UdpPacket::header [private] |
IP_ADDR UdpPacket::sourceip [private] |
IP_ADDR UdpPacket::destip [private] |
IPV6_ADDR UdpPacket::sourceip6 [private] |
IPV6_ADDR UdpPacket::destip6 [private] |
Packet::PROTOCOL UdpPacket::ipProtocol [private] |