public class DHCP6 extends BasePacket
Modifier and Type | Class and Description |
---|---|
static class |
DHCP6.MsgType
DHCPv6 message type.
|
static class |
DHCP6.OptionCode
DHCPv6 option code.
|
Modifier and Type | Field and Description |
---|---|
static Set<Byte> |
LEASEQUERY_MSG_TYPES |
static Set<Byte> |
RELAY_MSG_TYPES |
parent, payload
Constructor and Description |
---|
DHCP6()
Creates new DHCPv6 object.
|
Modifier and Type | Method and Description |
---|---|
static Deserializer<DHCP6> |
deserializer()
Returns a deserializer for DHCPv6.
|
byte |
getHopCount()
Gets the hop count of this DHCPv6 relay message.
|
Ip6Address |
getIp6LinkAddress()
Gets IPv6 link address.
|
Ip6Address |
getIp6PeerAddress()
Gets IPv6 peer address.
|
byte[] |
getLinkAddress()
Gets the link address of this DHCPv6 relay message.
|
byte |
getMsgType()
Gets the message type of this DHCPv6 packet.
|
List<Dhcp6Option> |
getOptions()
Gets options from this DHCPv6 packet.
|
byte[] |
getPeerAddress()
Gets the peer address of this DHCPv6 relay message.
|
int |
getTransactionId()
Gets the transaction ID of this DHCPv6 packet.
|
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
void |
setHopCount(byte hopCount)
Sets hop count.
|
void |
setLinkAddress(byte[] linkAddress)
Sets link address.
|
void |
setMsgType(byte msgType)
Sets message type.
|
void |
setOptions(List<Dhcp6Option> options)
Sets options.
|
void |
setPeerAddress(byte[] peerAddress)
Sets peer address.
|
void |
setTransactionId(int transactionId)
Sets transaction id.
|
String |
toString() |
clone, equals, getParent, getPayload, hashCode, resetChecksum, setParent, setPayload
public byte[] serialize()
IPacket
public static Deserializer<DHCP6> deserializer()
public byte getMsgType()
public List<Dhcp6Option> getOptions()
public int getTransactionId()
public byte getHopCount()
public byte[] getLinkAddress()
public Ip6Address getIp6LinkAddress()
public byte[] getPeerAddress()
public Ip6Address getIp6PeerAddress()
public void setMsgType(byte msgType)
msgType
- the message typepublic void setOptions(List<Dhcp6Option> options)
options
- the optionspublic void setTransactionId(int transactionId)
transactionId
- the transaction idpublic void setHopCount(byte hopCount)
hopCount
- the hop countpublic void setLinkAddress(byte[] linkAddress)
linkAddress
- the link addresspublic void setPeerAddress(byte[] peerAddress)
peerAddress
- the peer address