PcapPlusPlus  22.11
pcpp::SomeIpSdOption Class Reference

#include <SomeIpSdLayer.h>

Inheritance diagram for pcpp::SomeIpSdOption:
pcpp::SomeIpSdConfigurationOption pcpp::SomeIpSdIPv4Option pcpp::SomeIpSdIPv6Option pcpp::SomeIpSdLoadBalancingOption

Classes

struct  someipsdhdroptionsbase
 

Public Types

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

virtual ~SomeIpSdOption ()
 
OptionType getType () const
 
size_t getLength () const
 
uint8_t * getDataPtr () const
 
someipsdhdroptionsbasegetSomeIpSdOptionHeader () const
 

Detailed Description

Base class of the SOME/IP-SD options. Cannot be instantiated.

Member Enumeration Documentation

◆ OptionType

enum pcpp::SomeIpSdOption::OptionType : uint8_t
strong

Types of options currently available for the SOME/IP-SD protocol

Enumerator
Unknown 

Unknown Option Type

ConfigurationString 

Configuration Option

LoadBalancing 

Load Balancing Option

IPv4Endpoint 

IPv4 Endpoint Option

IPv6Endpoint 

IPv6 Endpoint Option

IPv4Multicast 

IPv4 Multicast Option

IPv6Multicast 

IPv6 Multicast Option

IPv4SdEndpoint 

IPv4 SD Endpoint Option

IPv6SdEndpoint 

IPv6 SD Endpoint Option

Constructor & Destructor Documentation

◆ ~SomeIpSdOption()

virtual pcpp::SomeIpSdOption::~SomeIpSdOption ( )
virtual

Destroy the SOME/IP-SD Option object and delete allocated data if it has been allocated by a constructor

Member Function Documentation

◆ getDataPtr()

uint8_t* pcpp::SomeIpSdOption::getDataPtr ( ) const

Get the internal data of the SOME/IP-SD Option

Returns
uint8_t*

◆ getLength()

size_t pcpp::SomeIpSdOption::getLength ( ) const
inline

Get the Length of the SOME/IP-SD option

Returns
size_t

◆ getSomeIpSdOptionHeader()

someipsdhdroptionsbase* pcpp::SomeIpSdOption::getSomeIpSdOptionHeader ( ) const

Get a pointer to the SOME/IP-SD Option base header

Returns
someipsdhdroptionsbase*

◆ getType()

OptionType pcpp::SomeIpSdOption::getType ( ) const

Get the Option Type

Returns
OptionType