com.ibm.as400.util.commtrace
Class ICMP6Header

java.lang.Object
  extended by com.ibm.as400.util.commtrace.Header
      extended by com.ibm.as400.util.commtrace.ICMP6Header
Direct Known Subclasses:
Message, NDOption

public class ICMP6Header
extends Header

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


Field Summary
 
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
 String getChecksum()
          Returns the checksum of this ICMPv6 Header.
 String getCode()
          Returns the code of this ICMPv6 Header.
 int getHeaderLen()
          Returns the length of this header.
 Header getNextHeader()
          Returns the next header in the packet.
 String getTypeField()
          Returns the type of this ICMPv6 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, 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.

getNextHeader

public Header getNextHeader()
Returns the next header in the packet.

Overrides:
getNextHeader in class Header
Returns:
Will always return a Message Header.

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 ICMPv6 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 ICMPv6 Header.

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

getChecksum

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

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