PcapPlusPlus  23.09
pcpp::SomeIpSdIPv4Option Class Reference

#include <SomeIpSdLayer.h>

Inheritance diagram for pcpp::SomeIpSdIPv4Option:
pcpp::SomeIpSdOption

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
 
someipsdhdroptionsbasegetSomeIpSdOptionHeader () const
 

Detailed Description

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

Member Enumeration Documentation

◆ IPv4OptionType

Types of options which are implemented with this class

Enumerator
IPv4Endpoint 

IPv4 Endpoint Option

IPv4Multicast 

IPv4 Multicast Option

IPv4SdEndpoint 

IPv4 SD Endpoint Option

Constructor & Destructor Documentation

◆ SomeIpSdIPv4Option() [1/2]

pcpp::SomeIpSdIPv4Option::SomeIpSdIPv4Option ( IPv4OptionType  type,
IPv4Address  ipAddress,
uint16_t  port,
SomeIpSdProtocolType  l4Protocol 
)

Construct a new SomeIpSdIPv4 Option object

Parameters
[in]typeIPv4 Option type
[in]ipAddressIpv4 address to use
[in]portPort to use
[in]l4ProtocolProtocol to use

◆ SomeIpSdIPv4Option() [2/2]

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

Construct a new SomeIpSdIPv4 Option object from already existing memory

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

Member Function Documentation

◆ getIpAddress()

IPv4Address pcpp::SomeIpSdIPv4Option::getIpAddress ( ) const

Get the Ip Address

Returns
IPv4Address

◆ getPort()

uint16_t pcpp::SomeIpSdIPv4Option::getPort ( ) const

Get the Port

Returns
uint16_t

◆ getProtocol()

SomeIpSdProtocolType pcpp::SomeIpSdIPv4Option::getProtocol ( ) const

Get the Protocol

Returns
SomeIpSdProtocolType