com.ibm.as400.util.commtrace
Class ARPHeader
- java.lang.Object
-
- com.ibm.as400.util.commtrace.Header
-
- 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.
-
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
getDestinationHardwareAddress()
Returns the hardware address of the destination of this packet.java.lang.String
getDestinationIPAddress()
Returns the IP address of the destination of this packet.java.lang.String
getHardwareLength()
Returns the byte length of each hardware address of this packet.java.lang.String
getHardwareType()
Returns the hardware type of this packet.int
getHeaderLen()
Returns the length of this header.java.lang.String
getOpcode()
Returns the opcode of this packet.java.lang.String
getProtocol()
Returns the protocol of this packetjava.lang.String
getProtocolLength()
Returns the byte length of each protocol address of this packet.java.lang.String
getSourceHardwareAddress()
Returns the hardware address of the sender of this packet.java.lang.String
getSourceIPAddress()
Returns the IP address of the source of this packet.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, getNextHeader, getPayload, getPayLoad, getPayloadBytes, getPayloadHexString, getType, printHexHeader, toHexString, toString
-
-
-
-
Method Detail
-
getHeaderLen
public int getHeaderLen()
Returns the length of this header.- Overrides:
getHeaderLen
in classHeader
- Returns:
- Will always return 224.
-
toString
public java.lang.String toString(FormatProperties filter)
Returns a printable 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
-
-