SSF.OS
Class DumpPro

java.lang.Object
  |
  +--SSF.OS.DumpPro

public synchronized class DumpPro
extends java.lang.Object


Nested Class Summary
(package private)  class DumpPro.DumpFileHeader
           
(package private)  class DumpPro.IPHeader
           
(package private)  class DumpPro.PktHeader
           
(package private)  class DumpPro.TCPHeader
           
(package private)  class DumpPro.UDPHeader
           
 
Field Summary
(package private) static int ACK
           
(package private) static int ACK_NO
           
(package private) static int ADV_WIN
           
(package private) static int BYTE_COUNT
           
(package private) static boolean data
           
(package private) static int DATLEN
           
(package private) static int DEST_IP
           
(package private) static int DEST_PORT
           
(package private) static int dip
           
(package private) static int DLT_EN10MB
           
(package private) static int DLT_FDDI
           
(package private) static int DLT_NULL
           
(package private) static int DLT_RAW
           
(package private) static int DLT_SLIP
           
(package private) static int dport
           
(package private) static double etime
           
(package private) static int FIN
           
(package private) static byte flag_mask
           
(package private) static int FLAGS
           
(package private)  java.io.DataInputStream in
           
(package private)  int init_microsec
           
(package private)  int init_second
           
(package private)  int link_hdr_len
           
(package private) static int OFFSET
           
(package private) static int PKT_LEN
           
(package private) static int PROTOCOL
           
(package private) static int SEQ_NO
           
(package private) static int sip
           
(package private) static int sport
           
(package private) static int SRC_IP
           
(package private) static int SRC_PORT
           
(package private) static double stime
           
(package private)  boolean swap
           
(package private) static int SYN
           
(package private) static int TIMESTAMP
           
(package private) static int TTL
           
 
Constructor Summary
DumpPro(java.lang.String, java.lang.String)
           
 
Method Summary
(package private) static void ()
           
 int byteToInt(boolean, byte[])
           
(package private)  int[] compact(int[])
           
 void format()
           
private static java.lang.String formatFlags(byte)
           
 DumpPro.DumpFileHeader getFileHeader()
           
 DumpPro.IPHeader getIpHeader()
           
 DumpPro.PktHeader getPktHeader()
           
 DumpPro.TCPHeader getTcpHeader()
           
 double getTime(DumpPro.PktHeader)
           
 DumpPro.UDPHeader getUdpHeader()
           
static java.lang.String IPtoString(int)
           
static void main(java.lang.String[])
           
 void output(int[])
           
 int[] scanForIpAddr()
           
private  void TcpFormat(DumpPro.PktHeader, DumpPro.IPHeader, int, java.io.PrintWriter)
           
private  void UdpFormat(DumpPro.PktHeader, DumpPro.IPHeader, int, java.io.PrintWriter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DLT_NULL

static final int DLT_NULL
See Also:
Constant Field Values

DLT_EN10MB

static final int DLT_EN10MB
See Also:
Constant Field Values

DLT_SLIP

static final int DLT_SLIP
See Also:
Constant Field Values

DLT_FDDI

static final int DLT_FDDI
See Also:
Constant Field Values

DLT_RAW

static final int DLT_RAW
See Also:
Constant Field Values

TIMESTAMP

static final int TIMESTAMP
See Also:
Constant Field Values

PKT_LEN

static final int PKT_LEN
See Also:
Constant Field Values

SRC_IP

static final int SRC_IP
See Also:
Constant Field Values

DEST_IP

static final int DEST_IP
See Also:
Constant Field Values

BYTE_COUNT

static final int BYTE_COUNT
See Also:
Constant Field Values

PROTOCOL

static final int PROTOCOL
See Also:
Constant Field Values

TTL

static final int TTL
See Also:
Constant Field Values

SRC_PORT

static final int SRC_PORT
See Also:
Constant Field Values

DEST_PORT

static final int DEST_PORT
See Also:
Constant Field Values

SEQ_NO

static final int SEQ_NO
See Also:
Constant Field Values

ACK_NO

static final int ACK_NO
See Also:
Constant Field Values

FLAGS

static final int FLAGS
See Also:
Constant Field Values

ADV_WIN

static final int ADV_WIN
See Also:
Constant Field Values

OFFSET

static final int OFFSET
See Also:
Constant Field Values

DATLEN

static final int DATLEN
See Also:
Constant Field Values

SYN

static final int SYN
See Also:
Constant Field Values

FIN

static final int FIN
See Also:
Constant Field Values

ACK

static final int ACK
See Also:
Constant Field Values

in

java.io.DataInputStream in

swap

boolean swap

link_hdr_len

int link_hdr_len

init_second

int init_second

init_microsec

int init_microsec

stime

static double stime

etime

static double etime

sip

static int sip

dip

static int dip

sport

static int sport

dport

static int dport

flag_mask

static byte flag_mask

data

static boolean data
Constructor Detail

DumpPro

public DumpPro(java.lang.String,
               java.lang.String)
        throws java.io.IOException
Method Detail

compact

int[] compact(int[])

getFileHeader

public DumpPro.DumpFileHeader getFileHeader()
                                     throws java.io.IOException
java.io.IOException

getPktHeader

public DumpPro.PktHeader getPktHeader()
                               throws java.io.IOException
java.io.IOException

getTime

public double getTime(DumpPro.PktHeader)
               throws java.io.IOException
java.io.IOException

getIpHeader

public DumpPro.IPHeader getIpHeader()
                             throws java.io.IOException
java.io.IOException

scanForIpAddr

public int[] scanForIpAddr()
                    throws java.io.IOException
java.io.IOException

getTcpHeader

public DumpPro.TCPHeader getTcpHeader()
                               throws java.io.IOException
java.io.IOException

getUdpHeader

public DumpPro.UDPHeader getUdpHeader()
                               throws java.io.IOException
java.io.IOException

format

public void format()

TcpFormat

private void TcpFormat(DumpPro.PktHeader,
                       DumpPro.IPHeader,
                       int,
                       java.io.PrintWriter)

UdpFormat

private void UdpFormat(DumpPro.PktHeader,
                       DumpPro.IPHeader,
                       int,
                       java.io.PrintWriter)

formatFlags

private static java.lang.String formatFlags(byte)

output

public void output(int[])

IPtoString

public static java.lang.String IPtoString(int)

byteToInt

public int byteToInt(boolean,
                     byte[])

main

public static void main(java.lang.String[])

static void ()