Skip to content

Commit

Permalink
Add SOME/IP SD protocol (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolbex authored Nov 5, 2022
1 parent 505cc8c commit 6d156bf
Show file tree
Hide file tree
Showing 16 changed files with 1,852 additions and 9 deletions.
1 change: 1 addition & 0 deletions Common++/header/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ namespace pcpp
PacketLogModuleNdpLayer, ///< NdpLayer module (Packet++)
PacketLogModuleFtpLayer, ///< FtpLayer module (Packet++)
PacketLogModuleSomeIpLayer, ///< SomeIpLayer module (Packet++)
PacketLogModuleSomeIpSdLayer, ///< SomeIpSdLayer module (Packet++)
PacketLogModuleWakeOnLanLayer, ///< WakeOnLanLayer module (Packet++)
PcapLogModuleWinPcapLiveDevice, ///< WinPcapLiveDevice module (Pcap++)
PcapLogModuleRemoteDevice, ///< WinPcapRemoteDevice module (Pcap++)
Expand Down
6 changes: 3 additions & 3 deletions Packet++/header/SomeIpLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class SomeIpLayer : public Layer

/**
* A constructor that creates the layer from an existing packet raw data
* @param[in] data A pointer to the raw data (will be casted to @ref someiphdr)
* @param[in] data A pointer to the raw data (will be casted to someiphdr)
* @param[in] dataLen Size of the data in bytes
* @param[in] prevLayer A pointer to the previous layer
* @param[in] packet A pointer to the Packet instance where layer will be stored in
Expand Down Expand Up @@ -133,7 +133,7 @@ class SomeIpLayer : public Layer
/**
* Get a pointer to the basic SOME/IP header. Notice this points directly to the data, so every change will change
* the actual packet data
* @return A pointer to the @ref someiphdr
* @return A pointer to the someiphdr
*/
someiphdr *getSomeIpHeader() const { return (someiphdr *)m_Data; }

Expand Down Expand Up @@ -328,7 +328,7 @@ class SomeIpLayer : public Layer
virtual void computeCalculateFields() {}

/**
* Identifies the following next layers: SomeIpLayer, SomeIpTpLayer. Otherwise sets PayloadLayer
* Identifies the following next layers: SomeIpLayer, SomeIpTpLayer, SomeIpSdLayer. Otherwise sets PayloadLayer
*/
void parseNextLayer();

Expand Down
Loading

0 comments on commit 6d156bf

Please sign in to comment.