PcapPlusPlus
22.11
|
#include <SomeIpSdLayer.h>
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 |
someipsdhdroptionsbase * | getSomeIpSdOptionHeader () const |
Additional Inherited Members | |
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 } |
Implements the Load Balancing option of SOME/IP-SD protocol
pcpp::SomeIpSdLoadBalancingOption::SomeIpSdLoadBalancingOption | ( | uint16_t | priority, |
uint16_t | weight | ||
) |
Construct a new Load Balancing object
[in] | priority | Priority of this instance |
[in] | weight | Weight of this instance |
pcpp::SomeIpSdLoadBalancingOption::SomeIpSdLoadBalancingOption | ( | const IDataContainer * | dataContainer, |
size_t | offset | ||
) |
Construct a new Option object from already existing memory
[in] | dataContainer | Data containing the option object |
[in] | offset | Offset for dataContainer |
uint16_t pcpp::SomeIpSdLoadBalancingOption::getPriority | ( | ) | const |
Get the priority fild
uint16_t pcpp::SomeIpSdLoadBalancingOption::getWeight | ( | ) | const |
Get the weight field