public class Icmp extends Object implements Protocol
Icmp.Builder
(mutable).
Includes support for the following OpenFlow match fields:
Modifier and Type | Class and Description |
---|---|
static class |
Icmp.Builder
Builder (mutable) used to create new protocol instances.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes()
Returns a copy of the payload bytes.
|
int |
checkSum()
Returns the decoded check sum.
|
ProtocolId |
id()
Returns the protocol ID.
|
int |
ident()
Returns the identifier for
IcmpTypeCode.ECHO_REQ or
IcmpTypeCode.ECHO_REPLY messages. |
int |
seqNum()
Returns the sequence number for
IcmpTypeCode.ECHO_REQ or
IcmpTypeCode.ECHO_REPLY messages. |
String |
toDebugString()
Returns the protocol debug string.
|
String |
toString() |
IcmpTypeCode |
typeCode()
Returns the type/code enumeration.
|
public ProtocolId id()
Protocol
public IcmpTypeCode typeCode()
public int checkSum()
public int ident()
IcmpTypeCode.ECHO_REQ
or
IcmpTypeCode.ECHO_REPLY
messages.public int seqNum()
IcmpTypeCode.ECHO_REQ
or
IcmpTypeCode.ECHO_REPLY
messages.public byte[] bytes()
public String toDebugString()
Protocol
toDebugString
in interface Protocol
Copyright © 2015. All Rights Reserved.