|
| SomeIpTpLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
|
| SomeIpTpLayer (uint16_t serviceID, uint16_t methodID, uint16_t clientID, uint16_t sessionID, uint8_t interfaceVersion, MsgType type, uint8_t returnCode, uint32_t offset, bool moreSegmentsFlag, const uint8_t *const data=nullptr, size_t dataLen=0) |
|
| ~SomeIpTpLayer () override=default |
| Destroy the layer object.
|
|
someiptphdr * | getSomeIpTpHeader () const |
|
uint32_t | getOffset () const |
|
void | setOffset (uint32_t offset) |
|
bool | getMoreSegmentsFlag () const |
|
void | setMoreSegmentsFlag (bool flag) |
|
void | computeCalculateFields () override |
| Sets the message type in this layer with enabling the TP flag.
|
|
std::string | toString () const override |
|
| SomeIpLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
|
| SomeIpLayer (uint16_t serviceID, uint16_t methodID, uint16_t clientID, uint16_t sessionID, uint8_t interfaceVersion, MsgType type, uint8_t returnCode, const uint8_t *const data=nullptr, size_t dataLen=0) |
|
| ~SomeIpLayer () override=default |
| Destroy the layer object.
|
|
someiphdr * | getSomeIpHeader () const |
|
uint32_t | getMessageID () const |
|
void | setMessageID (uint32_t messageID) |
|
uint16_t | getServiceID () const |
|
void | setServiceID (uint16_t serviceID) |
|
uint16_t | getMethodID () const |
|
void | setMethodID (uint16_t methodID) |
|
uint32_t | getLengthField () const |
|
uint32_t | getRequestID () const |
|
void | setRequestID (uint32_t requestID) |
|
uint16_t | getSessionID () const |
|
void | setSessionID (uint16_t sessionID) |
|
uint16_t | getClientID () const |
|
void | setClientID (uint16_t clientID) |
|
uint8_t | getProtocolVersion () const |
|
void | setProtocolVersion (uint8_t version) |
|
uint8_t | getInterfaceVersion () const |
|
void | setInterfaceVersion (uint8_t version) |
|
uint8_t | getMessageTypeAsInt () const |
|
SomeIpLayer::MsgType | getMessageType () const |
|
void | setMessageType (MsgType type) |
|
void | setMessageType (uint8_t type) |
|
uint8_t | getReturnCode () const |
|
void | setReturnCode (uint8_t returnCode) |
|
void | setPayloadLength (uint32_t payloadLength) |
|
uint8_t * | getPduPayload () const |
|
size_t | getPduPayloadSize () const |
|
size_t | getHeaderLen () const override |
|
void | parseNextLayer () override |
| Identifies the following next layers: SomeIpLayer, SomeIpTpLayer, SomeIpSdLayer. Otherwise sets PayloadLayer.
|
|
OsiModelLayer | getOsiModelLayer () const override |
|
| ~Layer () override |
|
Layer * | getNextLayer () const |
|
Layer * | getPrevLayer () const |
|
ProtocolType | getProtocol () const |
|
bool | isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) 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 override |
|
|
enum class | MsgType : uint8_t {
REQUEST = 0x00
, REQUEST_ACK = 0x40
, REQUEST_NO_RETURN = 0x01
, REQUEST_NO_RETURN_ACK = 0x41
,
NOTIFICATION = 0x02
, NOTIFICATION_ACK = 0x42
, RESPONSE = 0x80
, RESPONSE_ACK = 0xC0
,
ERRORS = 0x81
, ERROR_ACK = 0xC1
, TP_REQUEST = 0x20
, TP_REQUEST_NO_RETURN = 0x21
,
TP_NOTIFICATION = 0x22
, TP_RESPONSE = 0xa0
, TP_ERROR = 0xa1
} |
| SOME/IP message types. More...
|
|
static Layer * | parseSomeIpLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
|
static bool | isSomeIpPort (uint16_t port) |
|
static void | addSomeIpPort (uint16_t port) |
|
static void | removeSomeIpPort (uint16_t port) |
|
static void | removeAllSomeIpPorts () |
| Removes all ports from a list of ports where pcap checks for SOME/IP communication.
|
|
Represents an SOME/IP Transport Protocol Layer