PcapPlusPlus  22.11
pcpp::SomeIpSdIPv6Option Class Reference

#include <SomeIpSdLayer.h>

Inheritance diagram for pcpp::SomeIpSdIPv6Option:
pcpp::SomeIpSdOption

Public Types

enum  IPv6OptionType { IPv6Endpoint, IPv6Multicast, IPv6SdEndpoint }
 
- 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

 SomeIpSdIPv6Option (IPv6OptionType type, IPv6Address ipAddress, uint16_t port, SomeIpSdProtocolType l4Protocol)
 
 SomeIpSdIPv6Option (const IDataContainer *dataContainer, size_t offset)
 
IPv6Address 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
 
someipsdhdroptionsbasegetSomeIpSdOptionHeader () const
 

Detailed Description

Implements the following SOME/IP-SD Options: IPv6 Endpoint, IPv6 Multicast, IPv6 SD Endpoint

Member Enumeration Documentation

◆ IPv6OptionType

Types of options which are implemented with this class

Enumerator
IPv6Endpoint 

IPv6 Endpoint Option

IPv6Multicast 

IPv6 Multicast Option

IPv6SdEndpoint 

IPv6 SD Endpoint Option

Constructor & Destructor Documentation

◆ SomeIpSdIPv6Option() [1/2]

pcpp::SomeIpSdIPv6Option::SomeIpSdIPv6Option ( IPv6OptionType  type,
IPv6Address  ipAddress,
uint16_t  port,
SomeIpSdProtocolType  l4Protocol 
)

Construct a new SomeIpSdIPv6 Option object

Parameters
[in]typeIPv6 Option type
[in]ipAddressIpv6 address to use
[in]portPort to use
[in]l4ProtocolProtocol to use

◆ SomeIpSdIPv6Option() [2/2]

pcpp::SomeIpSdIPv6Option::SomeIpSdIPv6Option ( const IDataContainer dataContainer,
size_t  offset 
)

Construct a new SomeIpSdIPv6 Option object from already existing memory

Parameters
[in]dataContainerData containing the SomeIpSdIPv6 Option object
[in]offsetOffset for dataContainer

Member Function Documentation

◆ getIpAddress()

IPv6Address pcpp::SomeIpSdIPv6Option::getIpAddress ( ) const

Get the Ip Address

Returns
IPv6Address

◆ getPort()

uint16_t pcpp::SomeIpSdIPv6Option::getPort ( ) const

Get the Port

Returns
uint16_t

◆ getProtocol()

SomeIpSdProtocolType pcpp::SomeIpSdIPv6Option::getProtocol ( ) const

Get the Protocol

Returns
SomeIpSdProtocolType