|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpcap.net.IPProtocol
IPProtocol utility class.
Field Summary |
Fields inherited from interface net.sourceforge.jpcap.net.IPProtocols |
AH, COMP, DSTOPTS, EGP, ENCAP, ESP, FRAGMENT, GRE, HOPOPTS, ICMP, ICMPV6, IDP, IGMP, INVALID, IP, IPIP, IPV6, MASK, MTP, NONE, PIM, PUP, RAW, ROUTING, RSVP, TCP, TP, UDP |
Constructor Summary | |
IPProtocol()
|
Method Summary | |
static int |
extractProtocol(int lLen,
byte[] packetBytes)
Extract the protocol code from packet data. |
static java.lang.String |
getDescription(int code)
Fetch a protocol description. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IPProtocol()
Method Detail |
public static java.lang.String getDescription(int code)
code
- the code associated with the message.
public static int extractProtocol(int lLen, byte[] packetBytes)
lLen
- the length of the link-level header.packetBytes
- packet bytes, including the link-layer header.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |