PcapPlusPlus  Next
pcpp::SomeIpSdLoadBalancingOption Class Reference

#include <SomeIpSdLayer.h>

Inheritance diagram for pcpp::SomeIpSdLoadBalancingOption:
pcpp::SomeIpSdOption

Public Member Functions

 SomeIpSdLoadBalancingOption (uint16_t priority, uint16_t weight)
 
 SomeIpSdLoadBalancingOption (const IDataContainer *dataContainer, size_t offset)
 
uint16_t getPriority () const
 
uint16_t getWeight () const
 
- Public Member Functions inherited from pcpp::SomeIpSdOption
virtual ~SomeIpSdOption ()
 
OptionType getType () const
 
size_t getLength () const
 
uint8_t * getDataPtr () const
 
someipsdhdroptionsbasegetSomeIpSdOptionHeader () const
 

Additional Inherited Members

- Public Types inherited from pcpp::SomeIpSdOption
enum class  OptionType : uint8_t {
  Unknown = 0x00 , ConfigurationString = 0x01 , LoadBalancing = 0x02 , IPv4Endpoint = 0x04 ,
  IPv6Endpoint = 0x06 , IPv4Multicast = 0x14 , IPv6Multicast = 0x16 , IPv4SdEndpoint = 0x24 ,
  IPv6SdEndpoint = 0x26
}
 

Detailed Description

Implements the Load Balancing option of SOME/IP-SD protocol

Constructor & Destructor Documentation

◆ SomeIpSdLoadBalancingOption() [1/2]

pcpp::SomeIpSdLoadBalancingOption::SomeIpSdLoadBalancingOption ( uint16_t  priority,
uint16_t  weight 
)

Construct a new Load Balancing object

Parameters
[in]priorityPriority of this instance
[in]weightWeight of this instance

◆ SomeIpSdLoadBalancingOption() [2/2]

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

Construct a new Option object from already existing memory

Parameters
[in]dataContainerData containing the option object
[in]offsetOffset for dataContainer

Member Function Documentation

◆ getPriority()

uint16_t pcpp::SomeIpSdLoadBalancingOption::getPriority ( ) const

Get the priority fild

Returns
uint16_t

◆ getWeight()

uint16_t pcpp::SomeIpSdLoadBalancingOption::getWeight ( ) const

Get the weight field

Returns
uint16_t