Packet.HeaderField
Modifier and Type | Field and Description |
---|---|
static short |
HW_TYPE_ETHERNET
The hardware tyep value that indicates Ethernet.
|
static short |
REPLY
The ARP operation code that indicates ARP reply.
|
static short |
REQUEST
The ARP operation code that indicates ARP request.
|
Constructor and Description |
---|
ARP() |
Modifier and Type | Method and Description |
---|---|
ARP |
clone()
Return a deep copy of this packet.
|
byte |
getHardwareAddressLength()
Gets the hardware address length from the stored ARP header.
|
short |
getHardwareType()
Gets the hardware type from the stored ARP header.
|
protected Map<String,Packet.HeaderField> |
getHeaderFormat()
Return a map that determines the format of the packet.
|
int |
getHeaderSize()
Gets the header size in bits.
|
short |
getOpCode()
Gets the opCode from stored ARP header.
|
byte |
getProtocolAddressLength()
Get the protocol address length from Protocol header.
|
short |
getProtocolType()
Gets the protocol type from the stored ARP header.
|
byte[] |
getSenderHardwareAddress()
Gets the sender hardware address from the stored ARP header.
|
byte[] |
getSenderProtocolAddress()
Gets the IP address from the stored ARP header.
|
byte[] |
getTargetHardwareAddress()
Gets the hardware address from the stored ARP header.
|
byte[] |
getTargetProtocolAddress()
Gets the target protocol address.
|
ARP |
setHardwareAddressLength(byte len)
Sets the hardware address length for the current ARP object instance.
|
ARP |
setHardwareType(short hwtype)
Sets the hardware Type for the current ARP object instance.
|
ARP |
setOpCode(short op)
Sets the opCode for the current ARP object instance.
|
ARP |
setProtocolAddressLength(byte len)
Sets the Protocol address for the current ARP object instance.
|
ARP |
setProtocolType(short ptype)
Sets the protocol Type for the current ARP object instance.
|
ARP |
setSenderHardwareAddress(byte[] addr)
Sets the sender hardware address for the current ARP object instance.
|
ARP |
setSenderProtocolAddress(byte[] addr)
Sets the sender protocol address for the current ARP object instance.
|
ARP |
setTargetHardwareAddress(byte[] addr)
Sets the target hardware address for the current ARP object instance.
|
ARP |
setTargetProtocolAddress(byte[] addr)
Sets the target protocol address for the current ARP object instance.
|
deserialize, equals, equalsField, getByte, getBytes, getFieldNumBits, getFieldNumBits, getFieldOffset, getFieldOffset, getHeaderFieldMap, getInt, getIp4Network, getPayload, getRawPayload, getRawPayloadSize, getShort, hashCode, isCorrupted, isZeroShort, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setCorrupted, setHeaderField, setPayload, setPayloadClass, setRawPayload, toString
public static final short HW_TYPE_ETHERNET
public static final short REQUEST
public static final short REPLY
public short getHardwareType()
public short getProtocolType()
public byte getHardwareAddressLength()
public byte getProtocolAddressLength()
public short getOpCode()
public byte[] getSenderHardwareAddress()
null
if not configured.public byte[] getSenderProtocolAddress()
null
if not configured.public byte[] getTargetHardwareAddress()
null
if not configured.public byte[] getTargetProtocolAddress()
null
if not configured.public ARP setHardwareType(short hwtype)
hwtype
- The hardwareType to set.public ARP setProtocolType(short ptype)
ptype
- The protocol type to set.public ARP setHardwareAddressLength(byte len)
len
- The length of the hardware address.public ARP setProtocolAddressLength(byte len)
len
- The length of the protocol address.public ARP setOpCode(short op)
op
- The operation code.public ARP setSenderHardwareAddress(byte[] addr)
addr
- The sender hardware address.public ARP setTargetHardwareAddress(byte[] addr)
addr
- The target hardware address.public ARP setSenderProtocolAddress(byte[] addr)
addr
- The sender protocol address.public ARP setTargetProtocolAddress(byte[] addr)
addr
- The target protocol address.public int getHeaderSize()
getHeaderSize
in class Packet
protected Map<String,Packet.HeaderField> getHeaderFormat()
getHeaderFormat
in class Packet
Copyright © 2018 OpenDaylight. All rights reserved.