|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<JProtocol>
org.jnetpcap.protocol.JProtocol
public enum JProtocol
Enum table of core protocols supported by the scanner.
| Nested Class Summary | |
|---|---|
static interface |
JProtocol.Suite
A protocol suite. |
| Enum Constant Summary | |
|---|---|
ARP
Address Resolution Protocol. |
|
ETHERNET
DIX Ethernet2 header. |
|
HTML
Hyper Text Markup Language header. |
|
HTTP
Hyper Text Transmission Protocol header. |
|
ICMP
Internet Control Message Protocol header. |
|
IEEE_802DOT1Q
IEEE VLAN tag header. |
|
IEEE_802DOT2
IEEE LLC2 header. |
|
IEEE_802DOT3
IEEE 802.3 header type |
|
IEEE_SNAP
IEEE SNAP header. |
|
IP4
Ip version 4 header. |
|
IP6
Ip version 6 header. |
|
L2TP
Layer 2 tunneling protocol header. |
|
PAYLOAD
Builtin header type that encapsulates the portion of the packet buffer not matched by any protocol header. |
|
PPP
Point to Point Protocol header. |
|
RTP
Realtime Transfer Protocol. |
|
SDP
Session Data Protocol. |
|
SIP
Session Intiation Protocol. |
|
SLL
Linux cooked sockets. |
|
TCP
TCP/IP header. |
|
UDP
UDP/IP header. |
|
WEB_IMAGE
An Image header transmitted via http. |
|
| Field Summary | |
|---|---|
static int |
ARP_ID
The Constant ARP_ID. |
static int |
ETHERNET_ID
The Constant ETHERNET_ID. |
static int |
HTML_ID
The Constant HTML_ID. |
static int |
HTTP_ID
The Constant HTTP_ID. |
static int |
ICMP_ID
The Constant ICMP_ID. |
static int |
IEEE_802DOT1Q_ID
The Constant IEEE_802DOT1Q_ID. |
static int |
IEEE_802DOT2_ID
The Constant IEEE_802DOT2_ID. |
static int |
IEEE_802DOT3_ID
The Constant IEEE_802DOT3_ID. |
static int |
IEEE_SNAP_ID
The Constant IEEE_SNAP_ID. |
static int |
IP4_ID
The Constant IP4_ID. |
static int |
IP6_ID
The Constant IP6_ID. |
static int |
L2TP_ID
The Constant L2TP_ID. |
static int |
LAST_ID
The Constant LAST_ID. |
static int |
PAYLOAD_ID
The Constant PAYLOAD_ID. |
static int |
PPP_ID
The Constant PPP_ID. |
static int |
RTP_ID
The Constant RTP_ID. |
static int |
SDP_ID
The Constant SDP_ID. |
static int |
SIP_ID
The Constant SIP_ID. |
static int |
SLL_ID
The Constant SLL_ID. |
static int |
TCP_ID
The Constant TCP_ID. |
static int |
UDP_ID
The Constant UDP_ID. |
static int |
WEB_IMAGE_ID
The Constant WEB_IMAGE_ID. |
| Method Summary | |
|---|---|
java.lang.Class<? extends JHeader> |
getClazz()
Gets the main class for the network header of this protocol. |
PcapDLT[] |
getDlt()
Gets the corresponding Pcap defined Data Link Type. |
java.lang.Class<? extends JHeader> |
getHeaderClass()
Gets the header class. |
java.lang.String |
getHeaderClassName()
Gets the header class name. |
int |
getId()
Gets a unique runtime numerica ID of this protocol assigned by jNetStream. |
static boolean |
isCoreProtocol(java.lang.Class<? extends JHeader> c)
Checks the supplied header by class if its is one of jNetPcap's core protocol set. |
static boolean |
isCoreProtocol(int id)
Checks the supplied ID if its is one of jNetPcap's core protocol set. |
static JProtocol |
valueOf(java.lang.Class<? extends JHeader> c)
Converts a protocol header to a JPRotocol constant. |
static JProtocol |
valueOf(int id)
Converts a protocol header to a JPRotocol constant. |
static JProtocol |
valueOf(Pcap pcap)
Gets the numerical ID of the data link header for the open pcap handle. |
static JProtocol |
valueOf(PcapDLT dlt)
Gets the numerical ID of the data link header for supplied pcap dlt constant. |
static JProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JProtocol[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final JProtocol PAYLOAD
public static final JProtocol ETHERNET
public static final JProtocol IP4
public static final JProtocol IP6
public static final JProtocol TCP
public static final JProtocol UDP
public static final JProtocol IEEE_802DOT3
public static final JProtocol IEEE_802DOT2
public static final JProtocol IEEE_SNAP
public static final JProtocol IEEE_802DOT1Q
public static final JProtocol L2TP
public static final JProtocol PPP
public static final JProtocol ICMP
public static final JProtocol HTTP
public static final JProtocol HTML
public static final JProtocol WEB_IMAGE
public static final JProtocol ARP
public static final JProtocol SIP
public static final JProtocol SDP
public static final JProtocol RTP
public static final JProtocol SLL
| Field Detail |
|---|
public static final int PAYLOAD_ID
public static final int ETHERNET_ID
public static final int IP4_ID
public static final int IP6_ID
public static final int TCP_ID
public static final int UDP_ID
public static final int IEEE_802DOT3_ID
public static final int IEEE_802DOT2_ID
public static final int IEEE_SNAP_ID
public static final int IEEE_802DOT1Q_ID
public static final int L2TP_ID
public static final int PPP_ID
public static final int ICMP_ID
public static final int HTTP_ID
public static final int HTML_ID
public static final int WEB_IMAGE_ID
public static final int ARP_ID
public static final int SIP_ID
public static final int SDP_ID
public static final int RTP_ID
public static final int SLL_ID
public static final int LAST_ID
| Method Detail |
|---|
public static JProtocol[] values()
for (JProtocol c : JProtocol.values()) System.out.println(c);
public static JProtocol valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.Class<? extends JHeader> getHeaderClass()
public java.lang.String getHeaderClassName()
public static boolean isCoreProtocol(int id)
id - numerical ID of the header as assigned by JRegistry
public static boolean isCoreProtocol(java.lang.Class<? extends JHeader> c)
c - class name of the header to check
public static JProtocol valueOf(java.lang.Class<? extends JHeader> c)
c - header class to convert
public static JProtocol valueOf(int id)
id - numerical ID of the header assigned by JRegistry
public static JProtocol valueOf(Pcap pcap)
pcap - open Pcap handle
public static JProtocol valueOf(PcapDLT dlt)
dlt - pcap dlt constant
public PcapDLT[] getDlt()
public int getId()
public final java.lang.Class<? extends JHeader> getClazz()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||