com.ibm.as400.util.commtrace
Class IP4Header

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

public class IP4Header
extends Header

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


Field Summary
 
Fields inherited from class com.ibm.as400.util.commtrace.Header
EXTAH, EXTDEST, EXTESP, EXTFRAG, EXTHOPBYHOP, EXTROUTE, ICMP4, ICMP6, IP4, IP6
 
Method Summary
 String getDscp()
          Returns the dscp of this IPv4 Header.
 String getDstAddr()
          Returns the destination IP address of this IPv4 Header.
 String getEcn()
          Returns the ecn of this IPv4 Header.
 String getFlag()
          Returns the first flag of this IPv4 Header.
 String getFlag2()
          Returns the second flag of this IPv4 Header.
 String getFragmentOffset()
          Returns the fragment offset of this IPv4 Header.
 String getHeaderChecksum()
          Returns the header check sum.
 int getHeaderLen()
          Returns the length of this header.
 String getIdentification()
          Returns the indentification of this IPv4 Header.
 String getInternetHeaderLength()
          Returns the Internet Header length of this IPv4 Header.
 Header getNextHeader()
          Returns the next header in this packet.
 String getOptions()
          Returns the option of this IPv4 header.
 String getProtocol()
          Returns the protocol of this IPv4 Header.
 String getSrcAddr()
          Returns the source IP address of this IPv4 Header.
 String getTimeToLive()
          Returns the time to live of this IPv4 Header.
 String getTotalLength()
          Returns the total length of this IPv4 Header.
 String getTypeOfService()
          Returns the type of service of this IPv4 Header.
 String getVersion()
          Returns the version of this IPv4 Header.
 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()
Description copied from class: Header
Returns the length of this header.

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

getNextHeader

public Header getNextHeader()
Description copied from class: Header
Returns the next header in this packet.

Overrides:
getNextHeader in class Header
Returns:
Will always return null.

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.

getVersion

public String getVersion()
Returns the version of this IPv4 Header.

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

getInternetHeaderLength

public String getInternetHeaderLength()
Returns the Internet Header length of this IPv4 Header.

Returns:
String containing a decimal representation of the header length.

getTypeOfService

public String getTypeOfService()
Returns the type of service of this IPv4 Header.

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

getDscp

public String getDscp()
Returns the dscp of this IPv4 Header.

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

getEcn

public String getEcn()
Returns the ecn of this IPv4 Header.

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

getTotalLength

public String getTotalLength()
Returns the total length of this IPv4 Header.

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

getIdentification

public String getIdentification()
Returns the indentification of this IPv4 Header.

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

getFlag

public String getFlag()
Returns the first flag of this IPv4 Header.

Returns:
String containing a decimal representation of the flag.

getFlag2

public String getFlag2()
Returns the second flag of this IPv4 Header.

Returns:
String containing a decimal representation of the flag.

getFragmentOffset

public String getFragmentOffset()
Returns the fragment offset of this IPv4 Header.

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

getTimeToLive

public String getTimeToLive()
Returns the time to live of this IPv4 Header.

Returns:
String containing a decimal representation of the time to live for this header.

getProtocol

public String getProtocol()
Returns the protocol of this IPv4 Header.

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

getHeaderChecksum

public String getHeaderChecksum()
Returns the header check sum.

Returns:
String containing a decimal representation of the header check sum.

getSrcAddr

public String getSrcAddr()
Returns the source IP address of this IPv4 Header.

Returns:
String containing a delimited decimal representation of the source IP address.

getDstAddr

public String getDstAddr()
Returns the destination IP address of this IPv4 Header.

Returns:
String containing a delimited decimal representation of the destination IP address.

getOptions

public String getOptions()
Returns the option of this IPv4 header.

Returns:
String containing a decimal representation of the options.