ARPHeader
, ExtHeader
, ICMP4Header
, ICMP6Header
, IP4Header
, IP6Header
, TCPHeader
, UDPHeader
, UnknownHeader
public abstract class Header extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
EXTAH |
An Extended AH Header
|
static int |
EXTDEST |
An Extended Destination Header
|
static int |
EXTESP |
An Extended ESP Header
|
static int |
EXTFRAG |
An Extended Fragment Header
|
static int |
EXTHOPBYHOP |
An Extended Hop By Hop Header
|
static int |
EXTROUTE |
An Extended Routing Header
|
static int |
ICMP4 |
An ICMPv4 Header
|
static int |
ICMP6 |
An ICMPv6 Header
|
static int |
IP4 |
An IPv4 Header
|
static int |
IP6 |
An IPv6 Header
|
static int |
TCP |
A TCP Header
|
static int |
UDP |
An UDP Header
|
static int |
UNK |
An Unknown Header
|
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getHeaderData() |
Returns the data of this header.
|
int |
getHeaderLen() |
Returns the length of this header.
|
String |
getName() |
The name of this header.
|
Header |
getNextHeader() |
Returns the next header in this packet.
|
String |
getPayload() |
Returns this header's payload as an ascii and hexadecimal string.
|
byte[] |
getPayLoad() |
Returns this header's raw payload.
|
byte[] |
getPayloadBytes() |
Returns this header's payload as a byte array.
|
String |
getPayloadHexString() |
Returns this header's payload as a hexadecimal string.
|
int |
getType() |
Returns this header's type.
|
String |
printHexHeader() |
Returns a description of the header along with this header as a hexadecimal string.
|
String |
toHexString() |
Returns this header as a hexadecimal string.
|
String |
toString() |
Returns a printable representation of this header.
Without any specific formatting for the particular type of Header. |
String |
toString(FormatProperties filter) |
Returns a printable representation of this header.
|
public static final int ICMP6
public static final int IP6
public static final int ICMP4
public static final int IP4
public static final int TCP
public static final int UDP
public static final int EXTHOPBYHOP
public static final int EXTROUTE
public static final int EXTFRAG
public static final int EXTESP
public static final int EXTAH
public static final int EXTDEST
public static final int UNK
public byte[] getHeaderData()
public int getHeaderLen()
public String getName()
public Header getNextHeader()
public String printHexHeader()
public byte[] getPayLoad()
public String toString()
public String toString(FormatProperties filter)
filter
- FormatProperties object for filtering this header.public String toHexString()
public String getPayloadHexString()
public byte[] getPayloadBytes()
public String getPayload()
public int getType()
Copyright © 2024. All rights reserved.