com.ibm.as400.util.commtrace
Class ICMP4Header

java.lang.Object
  extended by com.ibm.as400.util.commtrace.Header
      extended by com.ibm.as400.util.commtrace.ICMP4Header

public class ICMP4Header
extends Header

A Internet Control Message Protocol V4 Header.
Extends Header's methods to parse, print, and allow easy access to the ICMPv4 Header.


Field Summary
Modifier and Type Field and Description
 
Fields inherited from class com.ibm.as400.util.commtrace.Header
EXTAH, EXTDEST, EXTESP, EXTFRAG, EXTHOPBYHOP, EXTROUTE, ICMP4, ICMP6, IP4, IP6, TCP, UDP, UNK
 
Method Summary
Modifier and Type Method and Description
 String getChecksum()
          Returns the checksum of this ICMPv4 Header.
 String getCode()
          Returns the code of this ICMPv4 Header.
 int getHeaderLen()
          Returns the length of this header.
 String getTypeField()
          Returns the type of this ICMPv4 Header from the trace.
 String toString(FormatProperties filter)
          Returns a printable representation of this header.
 
Methods inherited from class com.ibm.as400.util.commtrace.Header
getHeaderData, getName, getNextHeader, getPayload, getPayLoad, getPayloadBytes, getPayloadHexString, getType, printHexHeader, toHexString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getHeaderLen

public int getHeaderLen()
Returns the length of this header.

Overrides:
getHeaderLen in class Header
Returns:
Will always return 32.

toString

public String toString(FormatProperties filter)
Returns a printable representation of this header.

Overrides:
toString in class Header
Parameters:
filter - FormatProperties object for filtering this header.
Returns:
Returns a string representation of this header.

getTypeField

public String getTypeField()
Returns the type of this ICMPv4 Header from the trace.

Returns:
String containing a decimal representation of the type of this header.

getCode

public String getCode()
Returns the code of this ICMPv4 Header.

Returns:
String containing a decimal representation of the code for this header.

getChecksum

public String getChecksum()
Returns the checksum of this ICMPv4 Header.

Returns:
String containing a decimal representation of the checksum for this header.