public abstract class IPPacket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ARP
Address Resolution Protocol
|
static int |
IP4
Internet Protocol Version Four
|
static int |
IP6
Internet Protocol Version Six
|
static int |
RARP
Reverse Address Resolution Protocol
|
static int |
UNK
Unknown IPPacket
|
Constructor and Description |
---|
IPPacket()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Header |
getHeader()
Returns the header of this packet.
|
java.lang.String |
getName()
The name of this packet
|
int |
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.
|
public static final int ARP
public static final int RARP
public static final int IP4
public static final int IP6
public static final int UNK
public java.lang.String toString(FormatProperties filter)
filter
- FormatProperties object for filtering this packet.public Header getHeader()
public java.lang.String getName()
public int getType()
public void setType(int type)
type
- the type of this packet.