|
| DcpDhcpSuboption | suboption = DcpDhcpSuboption::Unknown |
| | DHCP suboption code.
|
| |
| std::string | suboptionName |
| | Human-readable name of the suboption.
|
| |
| std::vector< std::uint8_t > | rawData |
| | Raw, undecoded block payload.
|
| |
| std::optional< std::string > | hostname |
| | Decoded hostname, if this is a Hostname suboption.
|
| |
| std::optional< std::vector< std::uint8_t > > | clientId |
| | Decoded client ID, if this is a ClientID suboption.
|
| |
| std::optional< std::vector< std::uint8_t > > | vendorSpecific |
| | Decoded vendor-specific data, if this is a VendorSpec suboption.
|
| |
| std::optional< std::string > | fqdn |
| | Decoded fully qualified domain name, if this is an FQDN suboption.
|
| |
| std::optional< std::string > | uuid |
| | Decoded UUID string, if this is a UUID suboption.
|
| |
Parsed DHCP block from a DCP response.
Definition at line 194 of file dcp.h.
Parse a DHCP suboption's payload into a DCPDHCPBlock.
- Parameters
-
| suboption | DHCP suboption code. |
| data | Raw suboption payload. |
- Returns
- The parsed block.
Definition at line 553 of file dcp.cpp.
References clientId, profinet::DecodeBytes(), fqdn, profinet::Hex2(), hostname, rawData, suboption, suboption, suboptionName, profinet::ToHex(), uuid, profinet::uuidLenght, and vendorSpecific.
Referenced by profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), profinet::dcp::TEST(), and profinet::dcp::TEST().