com.ibm.as400.util.commtrace
Class ARPHeader

java.lang.Object
  extended by com.ibm.as400.util.commtrace.Header
      extended by com.ibm.as400.util.commtrace.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.


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 getDestinationHardwareAddress()
          Returns the hardware address of the destination of this packet.
 String getDestinationIPAddress()
          Returns the IP address of the destination of this packet.
 String getHardwareLength()
          Returns the byte length of each hardware address of this packet.
 String getHardwareType()
          Returns the hardware type of this packet.
 int getHeaderLen()
          Returns the length of this header.
 String getOpcode()
          Returns the opcode of this packet.
 String getProtocol()
          Returns the protocol of this packet
 String getProtocolLength()
          Returns the byte length of each protocol address of this packet.
 String getSourceHardwareAddress()
          Returns the hardware address of the sender of this packet.
 String getSourceIPAddress()
          Returns the IP address of the source of this packet.
 String toString(FormatProperties filter)
          Returns a printable representation of this header.
 
Methods inherited from class com.ibm.as400.util.commtrace.Header
getHeaderData, getName, getNextHeader, 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 224.

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.

getHardwareType

public String getHardwareType()
Returns the hardware type of this packet.

Returns:
String containing a decimal representation of this hardware type.

getProtocol

public String getProtocol()
Returns the protocol of this packet

Returns:
String containing a decimal representation of this protocol.

getHardwareLength

public 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 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 String getOpcode()
Returns the opcode of this packet.

Returns:
String containing a decimal representation of the opcode of this packet.

getSourceHardwareAddress

public 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 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 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 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