com.ibm.as400.util.commtrace

Class ARPHeader



  • public class ARPHeader
    extends Header
    An Address Resolution Protocol(ARP)/Reverse Address Resolution Protocol(RARP) Header.
    Extends Header's methods to parse, print, and allow easy access to the ARP/RARP Header.
    • Method Detail

      • getHeaderLen

        public int getHeaderLen()
        Returns the length of this header.
        Overrides:
        getHeaderLen in class Header
        Returns:
        Will always return 224.
      • 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.
      • getHardwareType

        public java.lang.String getHardwareType()
        Returns the hardware type of this packet.
        Returns:
        String containing a decimal representation of this hardware type.
      • getProtocol

        public java.lang.String getProtocol()
        Returns the protocol of this packet
        Returns:
        String containing a decimal representation of this protocol.
      • getHardwareLength

        public java.lang.String getHardwareLength()
        Returns the byte length of each hardware address of this packet.
        Returns:
        String containing a decimal representation of the byte length of each hardware address of this packet.
      • getProtocolLength

        public java.lang.String getProtocolLength()
        Returns the byte length of each protocol address of this packet.
        Returns:
        String containing a decimal representation of the byte length of each protocol address of this packet.
      • getOpcode

        public java.lang.String getOpcode()
        Returns the opcode of this packet.
        Returns:
        String containing a decimal representation of the opcode of this packet.
      • getSourceHardwareAddress

        public java.lang.String getSourceHardwareAddress()
        Returns the hardware address of the sender of this packet.
        Returns:
        String containing a hexadecimal representation of the hardware address of the sender of this packet.
      • getSourceIPAddress

        public java.lang.String getSourceIPAddress()
        Returns the IP address of the source of this packet.
        Returns:
        String containing a ASCII delimited representation of the IP address of the source of this packet.
      • getDestinationHardwareAddress

        public java.lang.String getDestinationHardwareAddress()
        Returns the hardware address of the destination of this packet.
        Returns:
        String containing a hexadecimal representation of the hardware address of the destination of this packet.
      • getDestinationIPAddress

        public java.lang.String getDestinationIPAddress()
        Returns the IP address of the destination of this packet.
        Returns:
        String containing a delimited representation of the IP address of the destination of this packet