public final class Dhcp6InterfaceIdOption extends Dhcp6Option
DEFAULT_LEN, UNSIGNED_SHORT_MASK
parent, 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, setLength
clone, getParent, getPayload, resetChecksum, setParent, setPayload
public Dhcp6InterfaceIdOption()
public Dhcp6InterfaceIdOption(Dhcp6Option dhcp6Option)
dhcp6Option
- the DHCPv6 optionpublic short getCode()
Dhcp6Option
getCode
in class Dhcp6Option
public short getLength()
Dhcp6Option
getLength
in class Dhcp6Option
public byte[] getData()
Dhcp6Option
getData
in class Dhcp6Option
public 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