SSF.OS.NetFlow
Class IpNetFlowWD

java.lang.Object
  |
  +--SSF.OS.NetFlow.NetFlow
        |
        +--SSF.OS.NetFlow.IpNetFlow
              |
              +--SSF.OS.NetFlow.IpNetFlowWD

public class IpNetFlowWD
extends IpNetFlow

IpNetFlow With Domain information


Field Summary
static byte EXTERNAL
           
 byte inputType
           
static byte INTERNAL
          link types, so are EXTERNAL and NOT_CONNECTED
static byte NOT_PTP
           
 byte outputType
           
 
Fields inherited from class SSF.OS.NetFlow.IpNetFlow
dOctets, dPkts, dst_mask, dstAddr, First, input, Last, nextHop, nhi, output, protocol, src_mask, srcAddr, tcp_flags
 
Fields inherited from class SSF.OS.NetFlow.NetFlow
next
 
Constructor Summary
IpNetFlowWD()
           
IpNetFlowWD(IpHeader ipPacket, short inID, byte inputType, short outID, byte outputType, float curTime, java.lang.String nhiAddr, byte srcMask, byte dstMask)
          constructor for IpNetFlow With Domain information
 
Method Summary
 void dumpBinaryOut(java.io.DataOutputStream outStream)
          Dump the flow to a stream.
 byte[] dumpToBytes()
          Generate a byte array from this record.
 void readBinaryIn(java.io.DataOutputStream inStream)
           
 void readFromBytes(byte[] bytes, int len)
          extract the record information from a byte array
 int recordSize()
          Size of IpNetFlow plus 2 bytes for inputType and outputType
 java.lang.String toString()
          dump to String
 
Methods inherited from class SSF.OS.NetFlow.IpNetFlow
acceptPacket, makeKey, makeKey, readBinaryIn, update
 
Methods inherited from class SSF.OS.NetFlow.NetFlow
removeFlow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INTERNAL

public static final byte INTERNAL
link types, so are EXTERNAL and NOT_CONNECTED

See Also:
Constant Field Values

EXTERNAL

public static final byte EXTERNAL
See Also:
Constant Field Values

NOT_PTP

public static final byte NOT_PTP
See Also:
Constant Field Values

inputType

public byte inputType

outputType

public byte outputType
Constructor Detail

IpNetFlowWD

public IpNetFlowWD()

IpNetFlowWD

public IpNetFlowWD(IpHeader ipPacket,
                   short inID,
                   byte inputType,
                   short outID,
                   byte outputType,
                   float curTime,
                   java.lang.String nhiAddr,
                   byte srcMask,
                   byte dstMask)
constructor for IpNetFlow With Domain information

Parameters:
inputType - true if the peer is an exteranl host
outputType - true if the peer is an exteranl host.
Method Detail

dumpToBytes

public byte[] dumpToBytes()
Description copied from class: IpNetFlow
Generate a byte array from this record. Notice that the nhi address is stored at the end, that is, starting from index 36.

Overrides:
dumpToBytes in class IpNetFlow

readFromBytes

public void readFromBytes(byte[] bytes,
                          int len)
Description copied from class: IpNetFlow
extract the record information from a byte array

Overrides:
readFromBytes in class IpNetFlow
Parameters:
bytes - the byte array that stores the data
len - the length of the data stored in the array (Not the length of the array)

recordSize

public int recordSize()
Size of IpNetFlow plus 2 bytes for inputType and outputType

Overrides:
recordSize in class IpNetFlow

toString

public java.lang.String toString()
dump to String

Overrides:
toString in class IpNetFlow

dumpBinaryOut

public void dumpBinaryOut(java.io.DataOutputStream outStream)
Description copied from class: IpNetFlow
Dump the flow to a stream. If this is a list, dump the whole list.
NOTICE: this is used before the function dumpToBytes is written. It's obsolete after that.

Overrides:
dumpBinaryOut in class IpNetFlow
Parameters:
outStream - the outputStream into which the data is dumped.

readBinaryIn

public void readBinaryIn(java.io.DataOutputStream inStream)