PcapPlusPlus
22.11
|
#include <SomeIpSdLayer.h>
Public Types | |
enum | IPv4OptionType { IPv4Endpoint, IPv4Multicast, IPv4SdEndpoint } |
Public Types inherited from pcpp::SomeIpSdOption | |
enum | OptionType : uint8_t { OptionType::Unknown = 0x00, OptionType::ConfigurationString = 0x01, OptionType::LoadBalancing = 0x02, OptionType::IPv4Endpoint = 0x04, OptionType::IPv6Endpoint = 0x06, OptionType::IPv4Multicast = 0x14, OptionType::IPv6Multicast = 0x16, OptionType::IPv4SdEndpoint = 0x24, OptionType::IPv6SdEndpoint = 0x26 } |
Public Member Functions | |
SomeIpSdIPv4Option (IPv4OptionType type, IPv4Address ipAddress, uint16_t port, SomeIpSdProtocolType l4Protocol) | |
SomeIpSdIPv4Option (const IDataContainer *dataContainer, size_t offset) | |
IPv4Address | getIpAddress () const |
uint16_t | getPort () const |
SomeIpSdProtocolType | getProtocol () const |
Public Member Functions inherited from pcpp::SomeIpSdOption | |
virtual | ~SomeIpSdOption () |
OptionType | getType () const |
size_t | getLength () const |
uint8_t * | getDataPtr () const |
someipsdhdroptionsbase * | getSomeIpSdOptionHeader () const |
Implements the following SOME/IP-SD Options: IPv4 Endpoint, IPv4 Multicast, IPv4 SD Endpoint
pcpp::SomeIpSdIPv4Option::SomeIpSdIPv4Option | ( | IPv4OptionType | type, |
IPv4Address | ipAddress, | ||
uint16_t | port, | ||
SomeIpSdProtocolType | l4Protocol | ||
) |
Construct a new SomeIpSdIPv4 Option object
[in] | type | IPv4 Option type |
[in] | ipAddress | Ipv4 address to use |
[in] | port | Port to use |
[in] | l4Protocol | Protocol to use |
pcpp::SomeIpSdIPv4Option::SomeIpSdIPv4Option | ( | const IDataContainer * | dataContainer, |
size_t | offset | ||
) |
Construct a new SomeIpSdIPv4 Option object from already existing memory
[in] | dataContainer | Data containing the SomeIpSdIPv4 Option object |
[in] | offset | Offset for dataContainer |
IPv4Address pcpp::SomeIpSdIPv4Option::getIpAddress | ( | ) | const |
Get the Ip Address
uint16_t pcpp::SomeIpSdIPv4Option::getPort | ( | ) | const |
Get the Port
SomeIpSdProtocolType pcpp::SomeIpSdIPv4Option::getProtocol | ( | ) | const |
Get the Protocol