|
Protocol++® (Protocolpp®) v5.7.2
|


Additional Inherited Members | |
Static Public Member Functions inherited from ProtocolPP::jprotocol | |
| const static std::string | currentDateTime () |
| static std::string | str_status (uint32_t status) |
| static jarray< uint8_t > | to_array (uint8_t input) |
| static jarray< uint8_t > | to_array (uint16_t input) |
| static jarray< uint8_t > | to_array (uint32_t input) |
| static jarray< uint8_t > | to_array (uint64_t input) |
| static uint8_t | to_u8 (jarray< uint8_t > src_array) |
| static uint16_t | to_u16 (jarray< uint8_t > src_array) |
| static uint32_t | to_u32 (jarray< uint8_t > src_array) |
| static uint64_t | to_u64 (jarray< uint8_t > src_array) |
| static uint32_t | fnv_hash (std::shared_ptr< jarray< uint8_t > > &header, jarray< uint8_t > &mask, uint32_t hdrlen) |
Protected Member Functions inherited from ProtocolPP::jprotocol | |
| template<typename T , typename TE > | |
| std::shared_ptr< jreplay< T, TE > > | update_replay (protocol_t prot, T &seqnum, TE &extseq, bool usext, uint32_t size) |
| template<typename T , typename TE > | |
| std::shared_ptr< jreplay< T, TE > > | update_replay (protocol_t prot, T &seqnum, TE &extseq, bool usext, uint32_t size, jarray< uint8_t > &window) |
| void | update_status (uint32_t stat) |
| void | get_data (std::shared_ptr< jarray< uint8_t > > &data) |
| void | put_data (std::shared_ptr< jarray< uint8_t > > &wdata) |
| void | encryptdat (std::shared_ptr< jarray< uint8_t > > &red, std::shared_ptr< jarray< uint8_t > > &black) |
| void | decryptdat (std::shared_ptr< jarray< uint8_t > > &black, std::shared_ptr< jarray< uint8_t > > &red) |
| uint32_t | roundup (uint32_t value, uint32_t mult) |
Protected Attributes inherited from ProtocolPP::jprotocol | |
| direction_t | m_dir |
| direction of processing | |
| uint32_t | m_status |
| std::shared_ptr< jrand > | m_rand |
| random data generator passed into constructor | |
| std::string | m_filename |
| file input string for this protocol | |
| std::fstream | m_file |
| input file stream object for this protocol | |
| endian_t | m_endian |
| endianess string for this protocol | |
|
explicit |
constructor for normal UDP
| security | - Parameters necessary to setup UDP flow |
| ProtocolPP::judp::judp | ( | std::shared_ptr< judpsa > & | security, |
| std::string & | file | ||
| ) |
constructor for normal UDP with file input
| security | - Parameters necessary to setup UDP flow |
| file | - path to file to use for payload data |
This function is for use with the constructor that accepts a file Decap will extract the data and write it to the file specificed in the constuctor
| input | - UDP packet to decapsulate and write to file |
Reimplemented from ProtocolPP::jprotocol.
|
virtual |
This function is for use with the constructor without a file handle. Decap will produce a payload from the packet passed in
| input | - UDP packet to decapsulate |
| output | - decapsulated payload |
Implements ProtocolPP::jprotocol.
|
virtual |
This function is for use with the constructor without a file handle. Encap will produce a packet from the payload passed in
| input | - payload to encapsulate with UDP |
| output | - encapsulated UDP packet |
Implements ProtocolPP::jprotocol.
This function is for use with the constructor that accepts a file. Encap will produce a packet each time it's called from the data found in the file until all data is exhausted
| output | - packet generated from payload data extracted from the file |
Reimplemented from ProtocolPP::jprotocol.
Retrieves the field from the security association
Reimplemented from ProtocolPP::jprotocol.
Retrieves the field from the UDP header
Implements ProtocolPP::jprotocol.
get_security
| sec | - Shared pointer to hold the security association |
Allows the user to update the source address in the UDP header
| field | - field to update in UDP |
| value | - new value |
Implements ProtocolPP::jprotocol.
Allows the user to update the complete UDP header
| hdr | - new UDP header |
Implements ProtocolPP::jprotocol.
|
virtual |
Print the protocol object to JSON
| myjson | - JSON object |
| direction | - facilitator for random generation |
| indent | - indentation for JSON output |
Implements ProtocolPP::jprotocol.
|
virtual |
Print the protocol object to XML
| myxml | - XMLPrinter object |
| direction | - facilitator for random generation |
Implements ProtocolPP::jprotocol.