| java.lang.Object | |
| ↳ | com.datalogic.os.network.DhcpOption |
Represents a single DHCP option received in a DHCP ACK packet.
A DHCP option consists of a numeric code that identifies the option type,
and a value encoded as raw bytes in data. Some options (notably option 43
– vendor specific information) carry a nested TLV-encoded list of sub-options; in that
case suboptions is populated with the parsed list.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| code | The DHCP option code as defined in RFC 2132. | ||||||||||
| data | The raw byte value of this option as received in the DHCP packet. | ||||||||||
| suboptions | Parsed sub-options, or null if this option does not carry a
TLV-encoded sub-option list. |
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns
true if this option contains a parsed sub-option list. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The DHCP option code as defined in RFC 2132. Common values include:
1 – Subnet Mask3 – Router6 – DNS Server43 – Vendor Specific Information51 – IP Address Lease Time54 – DHCP Server IdentifierThe raw byte value of this option as received in the DHCP packet.
Always populated, even when suboptions is present.
Parsed sub-options, or null if this option does not carry a
TLV-encoded sub-option list.
When non-null, each entry is a SubOption with its own code
and data. Sub-options do not have further nesting.
Returns true if this option contains a parsed sub-option list.
When true, iterate over suboptions to access individual
sub-options. When false, read the raw value from data.