public class ICMP
extends org.opendaylight.openflowplugin.libraries.liblldp.Packet
| Constructor and Description |
|---|
ICMP()
Default constructor that creates and sets the hash map values.
|
ICMP(boolean writeAccess)
Constructor that sets the access level for the packet.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getChecksum()
Gets the checksum value stored.
|
byte |
getCode()
Gets the ICMP code (type subtype) for the current ICMP object instance.
|
int |
getHeaderSize()
Gets the header size in bits.
|
short |
getIdentifier()
Gets the ICMP identifier of the current ICMP object instance.
|
short |
getSequenceNumber()
Gets the ICMP sequence number of the current ICMP object instance.
|
byte |
getType()
Returns the type field of the current ICMP packet.
|
protected void |
postDeserializeCustomOperation(byte[] data,
int endBitOffset) |
protected void |
postSerializeCustomOperation(byte[] serializedBytes) |
ICMP |
setChecksum(short checksum)
Sets the ICMP checksum for the current ICMP object instance.
|
ICMP |
setCode(byte code)
Sets the ICMP code (type subtype) for the current ICMP object instance.
|
void |
setHeaderField(String headerField,
byte[] readValue) |
ICMP |
setIdentifier(short identifier)
Sets the ICMP identifier for the current ICMP object instance.
|
ICMP |
setSequenceNumber(short seqNumber)
Sets the ICMP sequence number for the current ICMP object instance.
|
ICMP |
setType(byte type)
Sets the type for the current ICMP message.
|
public ICMP()
public ICMP(boolean writeAccess)
writeAccess - - booleanpublic void setHeaderField(String headerField, byte[] readValue)
setHeaderField in class org.opendaylight.openflowplugin.libraries.liblldp.Packetpublic ICMP setType(byte type)
type - The ICMP message typepublic byte getType()
public ICMP setCode(byte code)
code - The ICMP message type subtypepublic byte getCode()
public ICMP setChecksum(short checksum)
checksum - - shortpublic ICMP setIdentifier(short identifier)
identifier - - shortpublic short getIdentifier()
public ICMP setSequenceNumber(short seqNumber)
public short getSequenceNumber()
public int getHeaderSize()
getHeaderSize in class org.opendaylight.openflowplugin.libraries.liblldp.Packetprotected void postSerializeCustomOperation(byte[] serializedBytes)
throws org.opendaylight.openflowplugin.libraries.liblldp.PacketException
postSerializeCustomOperation in class org.opendaylight.openflowplugin.libraries.liblldp.Packetorg.opendaylight.openflowplugin.libraries.liblldp.PacketExceptionprotected void postDeserializeCustomOperation(byte[] data,
int endBitOffset)
postDeserializeCustomOperation in class org.opendaylight.openflowplugin.libraries.liblldp.Packetpublic short getChecksum()
Copyright © 2019 OpenDaylight. All rights reserved.