public final class Dhcp6InterfaceIdOption extends Dhcp6Option
DEFAULT_LEN, UNSIGNED_SHORT_MASKparent, payload| Constructor and Description |
|---|
Dhcp6InterfaceIdOption()
Default constructor.
|
Dhcp6InterfaceIdOption(Dhcp6Option dhcp6Option)
Constructs a DHCPv6 relay option with DHCPv6 option.
|
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<Dhcp6Option> |
deserializer()
Gets deserializer for DHCPv6 relay option.
|
short |
getCode()
Gets the code of this option.
|
byte[] |
getData()
Gets the data of this option.
|
byte[] |
getInPort()
Gets inPort string.
|
short |
getLength()
Gets the length of this option.
|
MacAddress |
getMacAddress()
Gets Mac address.
|
short |
getVlanId()
Gets the vlan id of interface id.
|
void |
setInPort(byte[] port)
Sets inPort string.
|
void |
setMacAddress(MacAddress macAddress)
Sets MacAddress address.
|
void |
setVlanId(short vlanId)
Sets the vlan id of interface id.
|
String |
toString() |
equals, getToStringHelper, hashCode, serialize, setCode, setData, setLengthclone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic Dhcp6InterfaceIdOption()
public Dhcp6InterfaceIdOption(Dhcp6Option dhcp6Option)
dhcp6Option - the DHCPv6 optionpublic short getCode()
Dhcp6OptiongetCode in class Dhcp6Optionpublic short getLength()
Dhcp6OptiongetLength in class Dhcp6Optionpublic byte[] getData()
Dhcp6OptiongetData in class Dhcp6Optionpublic void setMacAddress(MacAddress macAddress)
macAddress - the client peer MacAddresspublic MacAddress getMacAddress()
public void setInPort(byte[] port)
port - the port from which client packet is receivedpublic byte[] getInPort()
public void setVlanId(short vlanId)
vlanId - the vlanid of client packetpublic short getVlanId()
public static Deserializer<Dhcp6Option> deserializer()
public String toString()
toString in class Dhcp6Option