public abstract class Header
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|---|
byte[] |
getHeaderData()
Returns the data of this header.
|
int |
getHeaderLen()
Returns the length of this header.
|
java.lang.String |
getName()
The name of this header.
|
Header |
getNextHeader()
Returns the next header in this packet.
|
java.lang.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.
|
java.lang.String |
getPayloadHexString()
Returns this header's payload as a hexadecimal string.
|
int |
getType()
Returns this header's type.
|
java.lang.String |
printHexHeader()
Returns a description of the header along with this header as a hexadecimal string.
|
java.lang.String |
toHexString()
Returns this header as a hexadecimal string.
|
java.lang.String |
toString()
Returns a printable representation of this header.
|
java.lang.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 java.lang.String getName()
public Header getNextHeader()
public java.lang.String printHexHeader()
public byte[] getPayLoad()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(FormatProperties filter)
filter
- FormatProperties object for filtering this header.public java.lang.String toHexString()
public java.lang.String getPayloadHexString()
public byte[] getPayloadBytes()
public java.lang.String getPayload()
public int getType()