ARPPacket
, IP4Packet
, IP6Packet
, UnknownPacket
public abstract class IPPacket extends Object
Modifier and Type | Field | 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 | Description |
---|---|
IPPacket() |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Header |
getHeader() |
Returns the header of this packet.
|
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.
|
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 String toString(FormatProperties filter)
filter
- FormatProperties object for filtering this packet.public Header getHeader()
public String getName()
public int getType()
public void setType(int type)
type
- the type of this packet.Copyright © 2023. All rights reserved.