|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.voytechs.tools.SlyDecoder
public final class SlyDecoder
Tool class that decoded the contents of a capture file, such as created with
3rd party tools like, tcpdump, ethereal, snoop, LANAnalyzer.
NPL (Network Protocol Language) is used to define various protocols to
decoder. It uses the definitions to parse the file according to the defines
rules.
You can supply the decoder a list of files to decode, with multiple -r
options and it will decode one after the other.
Syntax for class usage is SHELL command line based where all parameters are
passed into the Main method.
| Field Summary | |
|---|---|
static int |
PAD_ADDR
|
static int |
PAD_DADDR
|
static int |
PAD_INDEX
|
static int |
PAD_NAME
|
static int |
PAD_SADDR
|
static int |
PAD_TIME
|
static int |
TIME_ABSOLUTE
Absolute time mode |
static int |
TIME_FROM_PIVOT
Relative time mode always starting from first packet |
static int |
TIME_FROM_PREVIOUS
Relative time mode calculated using previous packet |
static int |
TIME_NULL
This is special flag for first packet |
| Constructor Summary | |
|---|---|
SlyDecoder()
|
|
| Method Summary | |
|---|---|
static void |
exit(int code)
Exit with a no message. |
static void |
exit(int code,
java.lang.String message)
Exit with a message. |
static java.lang.String |
formatDAddr(Packet packet)
|
static java.lang.String |
formatPacketForMultiLine(Packet packet)
Format output for a single summary line per header of the packet. |
static java.lang.String |
formatPacketForSingleLine(Packet packet)
Format output for a single summary line of the entire packet. |
static java.lang.String |
formatSAddr(Packet packet)
|
static java.lang.String |
formatTime(Packet packet,
Packet pivot,
int mode)
Format time for output. |
static Filter |
getFilter()
|
static void |
main(java.lang.String[] args)
Main method to envoke SlyDecoder |
static java.lang.String |
toStringStatic()
Same thing as toString() method, but static version to output out of this mainly static object. |
static void |
usage()
Send usage to standard output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TIME_ABSOLUTE
public static final int TIME_FROM_PIVOT
public static final int TIME_FROM_PREVIOUS
public static final int TIME_NULL
public static final int PAD_INDEX
public static final int PAD_TIME
public static final int PAD_ADDR
public static final int PAD_SADDR
public static final int PAD_DADDR
public static final int PAD_NAME
| Constructor Detail |
|---|
public SlyDecoder()
| Method Detail |
|---|
public static java.lang.String formatSAddr(Packet packet)
public static java.lang.String formatDAddr(Packet packet)
public static java.lang.String formatTime(Packet packet,
Packet pivot,
int mode)
packet - Current packetpivot - Previous or first packet depending on the time mode. In
TIME_ABSOLUTE mode, this parameter should be null.mode - Display time mode as described above. Use one of the
predefined constants.public static java.lang.String formatPacketForMultiLine(Packet packet)
packet - Packet to format out for.index - Index of the packet being formatted.time - Preformatted time string at the begining of the output line.
public static java.lang.String formatPacketForSingleLine(Packet packet)
packet - Packet to format out for.index - Index of the packet being formatted.time - Preformatted time string at the begining of the output line.
public static void usage()
public static void exit(int code)
public static void exit(int code,
java.lang.String message)
public static java.lang.String toStringStatic()
public static void main(java.lang.String[] args)
args - command line arguments. In the form: SlyDecoder [public static Filter getFilter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||