|
PcapPlusPlus
23.09
|
#include <SomeIpSdLayer.h>
Classes | |
| struct | someipsdhdrentry |
Public Member Functions | |
| SomeIpSdEntry (EntryType type, uint16_t serviceID, uint16_t instanceID, uint8_t majorVersion, uint32_t TTL, uint32_t minorVersion) | |
| SomeIpSdEntry (EntryType type, uint16_t serviceID, uint16_t instanceID, uint8_t majorVersion, uint32_t TTL, uint8_t counter, uint16_t eventGroupID) | |
| SomeIpSdEntry (const SomeIpSdLayer *pSomeIpSdLayer, size_t offset) | |
| ~SomeIpSdEntry () | |
| uint8_t * | getDataPtr () const |
| someipsdhdrentry * | getSomeIpSdEntryHeader () const |
| EntryType | getType () const |
| size_t | getLength () const |
| uint32_t | getNumOptions () const |
| uint16_t | getServiceId () const |
| void | setServiceId (uint16_t serviceId) |
| uint16_t | getInstanceId () const |
| void | setInstanceId (uint16_t instanceId) |
| uint8_t | getMajorVersion () const |
| void | setMajorVersion (uint8_t majorVersion) |
| uint32_t | getTtl () const |
| void | setTtl (uint32_t ttl) |
| uint32_t | getMinorVersion () const |
| void | setMinorVersion (uint32_t minorVersion) |
| uint8_t | getCounter () const |
| void | setCounter (uint8_t counter) |
| uint16_t | getEventgroupId () const |
| void | setEventgroupId (uint16_t eventgroupID) |
Implementation of the SOME/IP-SD Service Entry and Eventgroup Entry Type
|
strong |
Types of entries that can occur in SOME/IP-SD
| pcpp::SomeIpSdEntry::SomeIpSdEntry | ( | EntryType | type, |
| uint16_t | serviceID, | ||
| uint16_t | instanceID, | ||
| uint8_t | majorVersion, | ||
| uint32_t | TTL, | ||
| uint32_t | minorVersion | ||
| ) |
Construct a new SOME/IP-SD Service Entry Type
| [in] | type | Type to create |
| [in] | serviceID | ServiceID to use |
| [in] | instanceID | InstanceID to use |
| [in] | majorVersion | MajorVersion to use |
| [in] | TTL | TTL to use. Has to be 0 for all Stop* entry types |
| [in] | minorVersion | MinorVersion to use |
| pcpp::SomeIpSdEntry::SomeIpSdEntry | ( | EntryType | type, |
| uint16_t | serviceID, | ||
| uint16_t | instanceID, | ||
| uint8_t | majorVersion, | ||
| uint32_t | TTL, | ||
| uint8_t | counter, | ||
| uint16_t | eventGroupID | ||
| ) |
Construct a new SOME/IP-SD Eventgroup Entry Type
| [in] | type | Type to create |
| [in] | serviceID | ServiceID to use |
| [in] | instanceID | InstanceID to use |
| [in] | majorVersion | MajorVersion to use |
| [in] | TTL | TTL to use. Has to be 0 for all Stop* entry types |
| [in] | counter | Counter value to use |
| [in] | eventGroupID | EventgroupId to use |
| pcpp::SomeIpSdEntry::SomeIpSdEntry | ( | const SomeIpSdLayer * | pSomeIpSdLayer, |
| size_t | offset | ||
| ) |
Construct a new SomeIpSdEntry object from existing data
| [in] | pSomeIpSdLayer | Layer that this entry is created for |
| [in] | offset | Offset for pSomeIpSdLayer |
| pcpp::SomeIpSdEntry::~SomeIpSdEntry | ( | ) |
Destroy the SomeIpSd Entry object and delete allocated data if it has been allocated by a constructor
| uint8_t pcpp::SomeIpSdEntry::getCounter | ( | ) | const |
Get the counter value
| uint8_t* pcpp::SomeIpSdEntry::getDataPtr | ( | ) | const |
Get the internal data of the SOME/IP-SD Entry
| uint16_t pcpp::SomeIpSdEntry::getEventgroupId | ( | ) | const |
Get the eventgroup id
| uint16_t pcpp::SomeIpSdEntry::getInstanceId | ( | ) | const |
Get the Instance Id in host endianness
|
inline |
Get the Length of the SomeIpSd Entry
| uint8_t pcpp::SomeIpSdEntry::getMajorVersion | ( | ) | const |
Get the Major version field in host endianness
| uint32_t pcpp::SomeIpSdEntry::getMinorVersion | ( | ) | const |
Get the minor version
| uint32_t pcpp::SomeIpSdEntry::getNumOptions | ( | ) | const |
Get the number of Options of this Entry
| uint16_t pcpp::SomeIpSdEntry::getServiceId | ( | ) | const |
Get the Service Id in host endianness
| someipsdhdrentry* pcpp::SomeIpSdEntry::getSomeIpSdEntryHeader | ( | ) | const |
Get a pointer to the SOME/IP-SD Entry header
| uint32_t pcpp::SomeIpSdEntry::getTtl | ( | ) | const |
Get the Ttl field
|
inline |
Get the Entry Type
| void pcpp::SomeIpSdEntry::setCounter | ( | uint8_t | counter | ) |
Set the counter value
| [in] | counter |
| void pcpp::SomeIpSdEntry::setEventgroupId | ( | uint16_t | eventgroupID | ) |
Set the eventgroup id
| [in] | eventgroupID |
| void pcpp::SomeIpSdEntry::setInstanceId | ( | uint16_t | instanceId | ) |
Set the Instance Id
| [in] | instanceId |
| void pcpp::SomeIpSdEntry::setMajorVersion | ( | uint8_t | majorVersion | ) |
Set the Major Version
| [in] | majorVersion |
| void pcpp::SomeIpSdEntry::setMinorVersion | ( | uint32_t | minorVersion | ) |
Set the minor version
| [in] | minorVersion |
| void pcpp::SomeIpSdEntry::setServiceId | ( | uint16_t | serviceId | ) |
Set the Service Id
| [in] | serviceId |
| void pcpp::SomeIpSdEntry::setTtl | ( | uint32_t | ttl | ) |
Set the Ttl field
| [in] | ttl |