Package org.onlab.packet.dhcp
Class Dhcp6Duid
- java.lang.Object
-
- org.onlab.packet.BasePacket
-
- org.onlab.packet.dhcp.Dhcp6Duid
-
- All Implemented Interfaces:
IPacket
public class Dhcp6Duid extends BasePacket
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Dhcp6Duid.DuidType
-
Field Summary
-
Fields inherited from class org.onlab.packet.BasePacket
parent, payload
-
-
Constructor Summary
Constructors Constructor Description Dhcp6Duid()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<Dhcp6Duid>
deserializer()
int
getDuidTime()
Dhcp6Duid.DuidType
getDuidType()
int
getEnterpriseNumber()
short
getHardwareType()
byte[]
getIdentifier()
byte[]
getLinkLayerAddress()
byte[]
getUuid()
byte[]
serialize()
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.void
setDuidTime(int duidTime)
void
setDuidType(Dhcp6Duid.DuidType duidType)
void
setEnterpriseNumber(int enterpriseNumber)
void
setHardwareType(short hardwareType)
void
setIdentifier(byte[] identifier)
void
setLinkLayerAddress(byte[] linkLayerAddress)
void
setUuid(byte[] uuid)
java.lang.String
toString()
-
Methods inherited from class org.onlab.packet.BasePacket
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
-
-
-
-
Method Detail
-
getDuidType
public Dhcp6Duid.DuidType getDuidType()
-
setDuidType
public void setDuidType(Dhcp6Duid.DuidType duidType)
-
getHardwareType
public short getHardwareType()
-
setHardwareType
public void setHardwareType(short hardwareType)
-
getDuidTime
public int getDuidTime()
-
setDuidTime
public void setDuidTime(int duidTime)
-
getLinkLayerAddress
public byte[] getLinkLayerAddress()
-
setLinkLayerAddress
public void setLinkLayerAddress(byte[] linkLayerAddress)
-
getEnterpriseNumber
public int getEnterpriseNumber()
-
setEnterpriseNumber
public void setEnterpriseNumber(int enterpriseNumber)
-
getIdentifier
public byte[] getIdentifier()
-
setIdentifier
public void setIdentifier(byte[] identifier)
-
getUuid
public byte[] getUuid()
-
setUuid
public void setUuid(byte[] uuid)
-
serialize
public byte[] serialize()
Description copied from interface:IPacket
Sets all payloads parent packet if applicable, then serializes this packet and all payloads.- Returns:
- a byte[] containing this packet and payloads
-
deserializer
public static Deserializer<Dhcp6Duid> deserializer()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-