Class fi.hut.tcm.jacob.tcpip.icmp.Icmp
java.lang.Object
|
+--fi.hut.tcm.jacob.conduits.BaseConduit
|
+--fi.hut.tcm.jacob.conduits.Protocol
|
+--fi.hut.tcm.jacob.tcpip.icmp.Icmp
- public class Icmp
- extends fi.hut.tcm.jacob.conduits.Protocol
- implements fi.hut.tcm.jacob.conduits.Debuggable
Icmp
The Internet Control Message Protocol. This protocol is a required
part of any IP implementation, even though it logically is a higher
level protocol, using IP as its transport.
This conduit encapsulates the other ICMP modules and effectively
acts as an interface for other protocols wanting to use the ICMP
protocol.
Field Summary
|
static int
|
CHECKSUM_OFFSET
Specifies the byte offset of the ICMP checksum in the
ICMP message. |
static int
|
CODE_OFFSET
Specifies the byte offset of the ICMP code in the
ICMP message. |
static int
|
DebugLevel
The debug output level (0, 1, 2 or 3). |
static int
|
TYPE_OFFSET
Specifies the byte offset of the ICMP type in the
ICMP message. |
Fields inherited from class fi.hut.tcm.jacob.conduits.Protocol |
INSIDE_A, INSIDE_B |
Fields inherited from class fi.hut.tcm.jacob.conduits.BaseConduit |
id, SIDE_NUMBER, sides |
Constructor Summary
|
Icmp()
|
Method Summary
|
java.lang.Object
|
clone()
|
void
|
debug()
|
void
|
deepcopy()
Creates a deep copy of this protocol by replacing all instance
variables with references to copies of their contents. |
Methods inherited from class fi.hut.tcm.jacob.conduits.Protocol |
accept, clone, initialSideCount, initSides |
Methods inherited from class fi.hut.tcm.jacob.conduits.BaseConduit |
accept, clone, dump, getId, getSide, getSideCount, initialSideCount, initSides |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
TYPE_OFFSET
public static int TYPE_OFFSET
- Specifies the byte offset of the
ICMP
type in the
ICMP
message.
CODE_OFFSET
public static int CODE_OFFSET
- Specifies the byte offset of the
ICMP
code in the
ICMP
message.
CHECKSUM_OFFSET
public static int CHECKSUM_OFFSET
- Specifies the byte offset of the
ICMP
checksum in the
ICMP
message.
DebugLevel
public static int DebugLevel
- The debug output level (0, 1, 2 or 3). Level 0 is no debug output,
whereas level 3 prints the most debug output. Level 1 is intended
to be informational,
levels 2 and 3 give detailed debug information.
Icmp
public Icmp()
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
- clone in class fi.hut.tcm.jacob.conduits.Protocol
debug
public void debug()
- Description copied from interface:
- Specified by:
- debug() in interface fi.hut.tcm.jacob.conduits.Debuggable
deepcopy
public void deepcopy()
- Creates a deep copy of this protocol by replacing all instance
variables with references to copies of their contents.