com.ibm.as400.util.commtrace
Class IPPacket
- java.lang.Object
-
- com.ibm.as400.util.commtrace.IPPacket
-
- Direct Known Subclasses:
- ARPPacket, IP4Packet, IP6Packet, UnknownPacket
public abstract class IPPacket extends java.lang.Object
Abstract packet class.
Contains this packet's rawdata and type.
Allows for easy access to this packet.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
ARP
Address Resolution Protocolstatic int
IP4
Internet Protocol Version Fourstatic int
IP6
Internet Protocol Version Sixstatic int
RARP
Reverse Address Resolution Protocolstatic int
UNK
Unknown IPPacket
-
Constructor Summary
Constructors Constructor and Description IPPacket()
Default constructor.
-
Method Summary
Methods Modifier and Type Method and Description Header
getHeader()
Returns the header of this packet.java.lang.String
getName()
The name of this packetint
getType()
Returns the type of this packet.void
setType(int type)
Sets the type of this packet.java.lang.String
toString(FormatProperties filter)
Returns a printable representation of this packet.
-
-
-
Field Detail
-
ARP
public static final int ARP
Address Resolution Protocol- See Also:
- Constant Field Values
-
RARP
public static final int RARP
Reverse Address Resolution Protocol- See Also:
- Constant Field Values
-
IP4
public static final int IP4
Internet Protocol Version Four- See Also:
- Constant Field Values
-
IP6
public static final int IP6
Internet Protocol Version Six- See Also:
- Constant Field Values
-
UNK
public static final int UNK
Unknown IPPacket- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString(FormatProperties filter)
Returns a printable representation of this packet.- Parameters:
filter
- FormatProperties object for filtering this packet.- Returns:
- Returns a string representation of this packet.
-
getHeader
public Header getHeader()
Returns the header of this packet.- Returns:
- Header the header of this packet.
-
getName
public java.lang.String getName()
The name of this packet- Returns:
- The name
-
getType
public int getType()
Returns the type of this packet.- Returns:
- The type of this packet.
-
setType
public void setType(int type)
Sets the type of this packet.- Parameters:
type
- the type of this packet.
-
-