com.ibm.as400.util.commtrace
Class IP4Header
- java.lang.Object
-
- com.ibm.as400.util.commtrace.Header
-
- 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.
-
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getDscp()
Returns the dscp of this IPv4 Header.java.lang.String
getDstAddr()
Returns the destination IP address of this IPv4 Header.java.lang.String
getEcn()
Returns the ecn of this IPv4 Header.java.lang.String
getFlag()
Returns the first flag of this IPv4 Header.java.lang.String
getFlag2()
Returns the second flag of this IPv4 Header.java.lang.String
getFragmentOffset()
Returns the fragment offset of this IPv4 Header.java.lang.String
getHeaderChecksum()
Returns the header check sum.int
getHeaderLen()
Returns the length of this header.java.lang.String
getIdentification()
Returns the indentification of this IPv4 Header.java.lang.String
getInternetHeaderLength()
Returns the Internet Header length of this IPv4 Header.Header
getNextHeader()
Returns the next header in this packet.java.lang.String
getOptions()
Returns the option of this IPv4 header.java.lang.String
getProtocol()
Returns the protocol of this IPv4 Header.java.lang.String
getSrcAddr()
Returns the source IP address of this IPv4 Header.java.lang.String
getTimeToLive()
Returns the time to live of this IPv4 Header.java.lang.String
getTotalLength()
Returns the total length of this IPv4 Header.java.lang.String
getTypeOfService()
Returns the type of service of this IPv4 Header.java.lang.String
getVersion()
Returns the version of this IPv4 Header.java.lang.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
-
-
-
-
Method Detail
-
getHeaderLen
public int getHeaderLen()
Description copied from class:Header
Returns the length of this header.- Overrides:
getHeaderLen
in classHeader
- Returns:
- Will always return 0.
-
getNextHeader
public Header getNextHeader()
Description copied from class:Header
Returns the next header in this packet.- Overrides:
getNextHeader
in classHeader
- Returns:
- Will always return null.
-
toString
public java.lang.String toString(FormatProperties filter)
Returns a printable representation of this header.
-
getVersion
public java.lang.String getVersion()
Returns the version of this IPv4 Header.- Returns:
- String containing a decimal representation of the version for this header.
-
getInternetHeaderLength
public java.lang.String getInternetHeaderLength()
Returns the Internet Header length of this IPv4 Header.- Returns:
- String containing a decimal representation of the header length.
-
getTypeOfService
public java.lang.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 java.lang.String getDscp()
Returns the dscp of this IPv4 Header.- Returns:
- String containing a decimal representation of the dscp for this header.
-
getEcn
public java.lang.String getEcn()
Returns the ecn of this IPv4 Header.- Returns:
- String containing a decimal representation of the ecn for this header.
-
getTotalLength
public java.lang.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 java.lang.String getIdentification()
Returns the indentification of this IPv4 Header.- Returns:
- String containing a decimal representation of the identification for this header.
-
getFlag
public java.lang.String getFlag()
Returns the first flag of this IPv4 Header.- Returns:
- String containing a decimal representation of the flag.
-
getFlag2
public java.lang.String getFlag2()
Returns the second flag of this IPv4 Header.- Returns:
- String containing a decimal representation of the flag.
-
getFragmentOffset
public java.lang.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 java.lang.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 java.lang.String getProtocol()
Returns the protocol of this IPv4 Header.- Returns:
- String containing a decimal representation of the protocol for this header.
-
getHeaderChecksum
public java.lang.String getHeaderChecksum()
Returns the header check sum.- Returns:
- String containing a decimal representation of the header check sum.
-
getSrcAddr
public java.lang.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 java.lang.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 java.lang.String getOptions()
Returns the option of this IPv4 header.- Returns:
- String containing a decimal representation of the options.
-
-