Package org.onlab.packet.dhcp
Class Dhcp6IaAddressOption
- java.lang.Object
 - 
- org.onlab.packet.BasePacket
 - 
- org.onlab.packet.dhcp.Dhcp6Option
 - 
- org.onlab.packet.dhcp.Dhcp6IaAddressOption
 
 
 
 
- 
- All Implemented Interfaces:
 IPacket
public final class Dhcp6IaAddressOption extends Dhcp6Option
IA Address option for DHCPv6. Based on RFC-3315. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_LEN- 
Fields inherited from class org.onlab.packet.dhcp.Dhcp6Option
UNSIGNED_SHORT_MASK 
- 
Fields inherited from class org.onlab.packet.BasePacket
parent, payload 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Dhcp6IaAddressOption() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Deserializer<Dhcp6Option>deserializer()booleanequals(Object obj)shortgetCode()Gets the code of this option.Ip6AddressgetIp6Address()Gets IPv6 address.shortgetLength()Gets the length of this option.IPacketgetOptions()Gets options of IA Address option.intgetPreferredLifetime()Gets preferred lifetime.intgetValidLifetime()Gets valid lifetime.inthashCode()byte[]serialize()Sets all payloads parent packet if applicable, then serializes this packet and all payloads.voidsetIp6Address(Ip6Address ip6Address)Sets IPv6 address.voidsetOptions(IPacket options)Sets options data.voidsetPreferredLifetime(int preferredLifetime)Sets preferred lifetime.voidsetValidLifetime(int validLifetime)Sets valid lifetime.StringtoString()- 
Methods inherited from class org.onlab.packet.dhcp.Dhcp6Option
getData, getToStringHelper, setCode, setData, setLength 
- 
Methods inherited from class org.onlab.packet.BasePacket
clone, getParent, getPayload, resetChecksum, setParent, setPayload 
 - 
 
 - 
 
- 
- 
Field Detail
- 
DEFAULT_LEN
public static final int DEFAULT_LEN
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getCode
public short getCode()
Description copied from class:Dhcp6OptionGets the code of this option.- Overrides:
 getCodein classDhcp6Option- Returns:
 - the code
 
 
- 
getLength
public short getLength()
Description copied from class:Dhcp6OptionGets the length of this option.- Overrides:
 getLengthin classDhcp6Option- Returns:
 - the length of this option
 
 
- 
setIp6Address
public void setIp6Address(Ip6Address ip6Address)
Sets IPv6 address.- Parameters:
 ip6Address- the IPv6 address
 
- 
setPreferredLifetime
public void setPreferredLifetime(int preferredLifetime)
Sets preferred lifetime.- Parameters:
 preferredLifetime- the preferred lifetime
 
- 
setValidLifetime
public void setValidLifetime(int validLifetime)
Sets valid lifetime.- Parameters:
 validLifetime- the valid lifetime
 
- 
setOptions
public void setOptions(IPacket options)
Sets options data.- Parameters:
 options- the options data
 
- 
getIp6Address
public Ip6Address getIp6Address()
Gets IPv6 address.- Returns:
 - the IPv6 address
 
 
- 
getPreferredLifetime
public int getPreferredLifetime()
Gets preferred lifetime.- Returns:
 - the preferred lifetime
 
 
- 
getValidLifetime
public int getValidLifetime()
Gets valid lifetime.- Returns:
 - the valid lifetime
 
 
- 
getOptions
public IPacket getOptions()
Gets options of IA Address option.- Returns:
 - the options data
 
 
- 
deserializer
public static Deserializer<Dhcp6Option> deserializer()
 
- 
serialize
public byte[] serialize()
Description copied from interface:IPacketSets all payloads parent packet if applicable, then serializes this packet and all payloads.- Specified by:
 serializein interfaceIPacket- Overrides:
 serializein classDhcp6Option- Returns:
 - a byte[] containing this packet and payloads
 
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classDhcp6Option
 
- 
equals
public boolean equals(Object obj)
- Overrides:
 equalsin classDhcp6Option
 
- 
toString
public String toString()
- Overrides:
 toStringin classDhcp6Option
 
 - 
 
 -