PcapPlusPlus
21.05
|
#include <SSHLayer.h>
Public Member Functions | |
void | parseNextLayer () |
void | computeCalculateFields () |
OsiModelLayer | getOsiModelLayer () const |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () const |
uint8_t * | getData () const |
size_t | getDataLen () const |
uint8_t * | getLayerPayload () const |
size_t | getLayerPayloadSize () const |
bool | isAllocatedToPacket () const |
void | copyData (uint8_t *toArr) const |
uint8_t * | getDataPtr (size_t offset=0) const |
virtual size_t | getHeaderLen () const =0 |
virtual std::string | toString () const =0 |
Static Public Member Functions | |
static SSHLayer * | createSSHMessage (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
static bool | isSSHPort (uint16_t portSrc, uint16_t portDst) |
This is the base class for the SSH layer. It is an abstract class that cannot be instanciated. It holds some common functionality, but its most important method is createSSHMessage() which takes raw data and creates an SSH message according to the heuristics described in the SSHLayer.h file description
|
inlinevirtual |
Does nothing for this layer
Implements pcpp::Layer.
|
static |
A static method that takes raw packet data and uses the heuristics described in the SSHLayer.h file description to create an SSH layer instance. This method assumes the data is indeed SSH data and not some other arbitrary data
[in] | data | A pointer to the raw data |
[in] | dataLen | Size of the data in bytes |
[in] | prevLayer | A pointer to the previous layer |
[in] | packet | A pointer to the Packet instance where layer will be stored in |
|
inlinevirtual |
Implements pcpp::Layer.
|
inlinestatic |
A static method that takes src and dst ports and determines whether it's SSH traffic or not.
[in] | portSrc | The source TCP port to examine |
[in] | portDst | The dest TCP port to examine |
|
virtual |
Several SSH records can reside in a single packets. This method examins the remaining data and creates additional SSH records if applicable
Implements pcpp::Layer.