com.ibm.as400.util.commtrace

Class 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 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 java.lang.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 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.