Class ARP
- java.lang.Object
-
- org.opendaylight.openflowplugin.libraries.liblldp.Packet
-
- org.opendaylight.genius.mdsalutil.packet.ARP
-
public class ARP extends org.opendaylight.openflowplugin.libraries.liblldp.Packet
Class that represents the ARP packet objects taken from opendaylight(helium) adsal bundle.
-
-
Field Summary
Fields Modifier and Type Field Description static short
HW_TYPE_ETHERNET
static short
PROTO_TYPE_IP
static short
REPLY
static short
REQUEST
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
byte
getHardwareAddressLength()
short
getHardwareType()
short
getOpCode()
byte
getProtocolAddressLength()
short
getProtocolType()
byte[]
getSenderHardwareAddress()
byte[]
getSenderProtocolAddress()
byte[]
getTargetHardwareAddress()
byte[]
getTargetProtocolAddress()
int
hashCode()
ARP
setHardwareAddressLength(byte hardwareAddressLength)
ARP
setHardwareType(short hardwareType)
ARP
setOpCode(short opCode)
ARP
setProtocolAddressLength(byte protocolAddressLength)
ARP
setProtocolType(short protocolType)
ARP
setSenderHardwareAddress(byte[] senderHardwareAddress)
ARP
setSenderProtocolAddress(byte[] senderIP)
ARP
setTargetHardwareAddress(byte[] targetHardwareAddress)
ARP
setTargetProtocolAddress(byte[] targetProtocolAddress)
-
Methods inherited from class org.opendaylight.openflowplugin.libraries.liblldp.Packet
deserialize, getfieldnumBits, getfieldOffset, getHeaderSize, getParent, getPayload, getRawPayload, isCorrupted, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setHeaderField, setParent, setPayload, setRawPayload, toString
-
-
-
-
Field Detail
-
HW_TYPE_ETHERNET
public static final short HW_TYPE_ETHERNET
- See Also:
- Constant Field Values
-
REQUEST
public static final short REQUEST
- See Also:
- Constant Field Values
-
REPLY
public static final short REPLY
- See Also:
- Constant Field Values
-
PROTO_TYPE_IP
public static final short PROTO_TYPE_IP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHardwareType
public short getHardwareType()
-
getProtocolType
public short getProtocolType()
-
getHardwareAddressLength
public byte getHardwareAddressLength()
-
getProtocolAddressLength
public byte getProtocolAddressLength()
-
getOpCode
public short getOpCode()
-
getSenderHardwareAddress
public byte[] getSenderHardwareAddress()
-
getSenderProtocolAddress
public byte[] getSenderProtocolAddress()
-
getTargetHardwareAddress
public byte[] getTargetHardwareAddress()
-
setHardwareType
public ARP setHardwareType(short hardwareType)
-
setProtocolType
public ARP setProtocolType(short protocolType)
-
setHardwareAddressLength
public ARP setHardwareAddressLength(byte hardwareAddressLength)
-
setProtocolAddressLength
public ARP setProtocolAddressLength(byte protocolAddressLength)
-
setOpCode
public ARP setOpCode(short opCode)
-
setSenderHardwareAddress
public ARP setSenderHardwareAddress(byte[] senderHardwareAddress)
-
setTargetHardwareAddress
public ARP setTargetHardwareAddress(byte[] targetHardwareAddress)
-
setTargetProtocolAddress
public ARP setTargetProtocolAddress(byte[] targetProtocolAddress)
-
setSenderProtocolAddress
public ARP setSenderProtocolAddress(byte[] senderIP)
-
getTargetProtocolAddress
public byte[] getTargetProtocolAddress()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.opendaylight.openflowplugin.libraries.liblldp.Packet
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classorg.opendaylight.openflowplugin.libraries.liblldp.Packet
-
-