|
DESERT 3.6.1
|
#include <packer-uwudp.h>


Public Member Functions | |
| packerUWUDP () | |
| ~packerUWUDP () | |
Public Member Functions inherited from packer | |
| packer (bool) | |
| ~packer () | |
| int | command (int, const char *const *) |
| size_t | getPayloadBytesLength () |
| size_t | getHdrBytesLength () |
| size_t | getPayloadBinLength () |
| size_t | getHdrBinLength () |
| std::string | packPayload (Packet *) |
| std::string | packHdr (Packet *) |
| Packet * | unpackPayload (Packet *) |
| Packet * | unpackHdr (Packet *) |
| void | printMap () |
Private Member Functions | |
| void | init () |
| size_t | packMyHdr (Packet *, unsigned char *, size_t) |
| size_t | unpackMyHdr (unsigned char *, size_t, Packet *) |
| void | printMyHdrMap () |
| void | printMyHdrFields (Packet *) |
Private Attributes | |
| size_t | SPort_Bits |
| size_t | DPort_Bits |
Additional Inherited Members | |
Static Public Member Functions inherited from packer | |
| template<typename T > | |
| static T | restoreSignedValue (T _header_field, const uint32_t &_num_compressed_bits) |
| static std::string | hexdump_nice (std::string) |
| static std::string | hexdump_nice (const char *, size_t) |
| static std::string | hexdump (std::string) |
| static std::string | hex_bytes (float) |
| static std::string | hex_bytes (double) |
| static std::string | hex_bytes (const char &, const uint32_t &) |
| static std::string | hex_bytes (const int8_t &, const uint32_t &) |
| static std::string | hex_bytes (const int16_t &, const uint32_t &) |
| static std::string | hex_bytes (const int32_t &, const uint32_t &) |
| static std::string | hex_bytes (const int64_t &, const uint32_t &) |
| static std::string | hex_bytes (const uint8_t &, const uint32_t &) |
| static std::string | hex_bytes (const uint16_t &, const uint32_t &) |
| static std::string | hex_bytes (const uint32_t &, const uint32_t &) |
| static std::string | hex_bytes (const uint64_t &, const uint32_t &) |
| static std::string | hexdump (const char *, size_t) |
| static std::string | bindump (std::string) |
| static std::string | bindump (const char *, size_t) |
Protected Member Functions inherited from packer | |
| virtual void | printMyHdrField (Packet *, int) |
| size_t | getMyHdrBinLength () |
| size_t | get (unsigned char *buffer, size_t offset, void *val, size_t h) |
| size_t | put (unsigned char *buffer, size_t offset, void *val, size_t h) |
Protected Attributes inherited from packer | |
| std::vector< size_t > | n_bits |
| int | debug_ |
Class exploited by the Uwal module to map an NS-Miracle packet into a bit stream, and vice-versa.
Definition at line 46 of file packer-uwudp.h.
| packerUWUDP::packerUWUDP | ( | ) |
Class constructor.
Definition at line 52 of file packer-uwudp.cpp.
| packerUWUDP::~packerUWUDP | ( | ) |
Class destructor.
Definition at line 68 of file packer-uwudp.cpp.
|
privatevirtual |
|
privatevirtual |
Method to transform the headers of Uwpolling into a stream of bits.
| Pointer | to the packet to serialize |
| Pointer | to the buffer |
| Offset | from the begin of the buffer |
Reimplemented from packer.
Definition at line 83 of file packer-uwudp.cpp.
|
privatevirtual |
Method used for debug purposes.
It prints the value of the headers of a packet
| Pointer | of the packet |
Reimplemented from packer.
Definition at line 128 of file packer-uwudp.cpp.
|
privatevirtual |
Method used for debug purposes.
It prints the number of bits for each header serialized
Reimplemented from packer.
Definition at line 122 of file packer-uwudp.cpp.
|
privatevirtual |
Method responsible to take the informations from the received buffer and store it into the headers of the packet.
| Pointer | to the buffer received |
| Offset | from the begin of the buffer |
| Pointer | to the new packet |
Reimplemented from packer.
Definition at line 101 of file packer-uwudp.cpp.
|
private |
Bit length of the sport_ field to be put in the header stream of bits.
Definition at line 95 of file packer-uwudp.h.
|
private |
Definition at line 94 of file packer-uwudp.h.