SSF.OS
Class DumpPro

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

public class DumpPro
extends java.lang.Object

A standalone class that translates binaryTcpDump files into ASCII format. Numerous command line options are available for output formatting.


Constructor Summary
DumpPro(java.lang.String infile, java.lang.String option)
          Constructors
 
Method Summary
 int byteToInt(boolean swap, byte[] b)
           
 void format()
          output with standard format
 SSF.OS.DumpPro.DumpFileHeader getFileHeader()
          read information from binary tcpdump file header
 SSF.OS.DumpPro.IPHeader getIpHeader()
          read ip header
 SSF.OS.DumpPro.PktHeader getPktHeader()
          read packet tcpdump header
 SSF.OS.DumpPro.TCPHeader getTcpHeader()
          read tcp header
 double getTime(SSF.OS.DumpPro.PktHeader hdr)
           
 SSF.OS.DumpPro.UDPHeader getUdpHeader()
           
static java.lang.String IPtoString(int ipAddr)
           
static void main(java.lang.String[] args)
           
 void output(int[] fields)
          output data according to options, (current version has no udp matrix format support )
 int[] scanForIpAddr()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DumpPro

public DumpPro(java.lang.String infile,
               java.lang.String option)
        throws java.io.IOException
Constructors

Method Detail

getFileHeader

public SSF.OS.DumpPro.DumpFileHeader getFileHeader()
                                            throws java.io.IOException
read information from binary tcpdump file header

java.io.IOException

getPktHeader

public SSF.OS.DumpPro.PktHeader getPktHeader()
                                      throws java.io.IOException
read packet tcpdump header

java.io.IOException

getTime

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

getIpHeader

public SSF.OS.DumpPro.IPHeader getIpHeader()
                                    throws java.io.IOException
read ip header

java.io.IOException

scanForIpAddr

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

getTcpHeader

public SSF.OS.DumpPro.TCPHeader getTcpHeader()
                                      throws java.io.IOException
read tcp header

java.io.IOException

getUdpHeader

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

format

public void format()
output with standard format


output

public void output(int[] fields)
output data according to options, (current version has no udp matrix format support )


IPtoString

public static java.lang.String IPtoString(int ipAddr)

byteToInt

public int byteToInt(boolean swap,
                     byte[] b)

main

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