AXL Software

com.theorem.radserver3.radutil
Class SnoopRecord

Object
  extended bySnoopRecord

public class SnoopRecord
extends Object

Snoop Packet contents.


Field Summary
 int cumulativeDrops
          32-bit unsigned integer representing the number of packets that were lost by the system that created the packet file between the first packet record in the file and this one.
 int includedLength
          32-bit unsigned integer representing the length of the Packet Data field.
 int microseconds
          32-bit unsigned integer representing microsecond resolution of packet arrival time.
 int originalLength
          32-bit unsigned integer representing the length in octets of the captured packet as received via a network.
 int packetRecordLength
          32-bit unsigned integer representing the total length of this packet record in octets.
 int seconds
          32-bit unsigned integer representing the time, in seconds since January 1, 1970, when the packet arrived.
 
Method Summary
 InetAddress getDestinationIP()
          Get destination IP address.
 int getDestinationPort()
          Get destination port.
 DumpPacket getDumpPacket()
          Get the DumpPacket object.
 int getMicroseconds()
          Get the microsecond portion of the time the packet was seen.
 byte[] getRADIUSPacket()
          Return the raw RADIUS packet data.
 int getSeconds()
          Get the time in seconds the packet was seen.
 InetAddress getSourceIP()
          Get source IP address.
 int getSourcePort()
          Get source port.
 long getTimeStamp()
          Get the current packet's time in microseconds.
 String toString()
          String representation of a Snoop Record
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cumulativeDrops

public int cumulativeDrops
32-bit unsigned integer representing the number of packets that were lost by the system that created the packet file between the first packet record in the file and this one. Packets may be lost because of insufficient resources in the capturing system, or for other reasons. Note: some implementations lack the ability to count dropped packets. Those implementations may set the cumulative drops value to zero.


includedLength

public int includedLength
32-bit unsigned integer representing the length of the Packet Data field. This is the number of octets of the captured packet that are included in this packet record. If the received packet was truncated, the Included Length field will be less than the Original Length field.


microseconds

public int microseconds
32-bit unsigned integer representing microsecond resolution of packet arrival time.


originalLength

public int originalLength
32-bit unsigned integer representing the length in octets of the captured packet as received via a network.


packetRecordLength

public int packetRecordLength
32-bit unsigned integer representing the total length of this packet record in octets. This includes the 24 octets of descriptive information, the length of the Packet Data field, and the length of the Pad field.


seconds

public int seconds
32-bit unsigned integer representing the time, in seconds since January 1, 1970, when the packet arrived.

Method Detail

getDestinationIP

public InetAddress getDestinationIP()
Get destination IP address.

Returns:
destination IP address.

getDestinationPort

public int getDestinationPort()
Get destination port.

Returns:
destination port.

getDumpPacket

public DumpPacket getDumpPacket()
Get the DumpPacket object. Gets the DumpPacket object. This object can retrieve packet information.


getMicroseconds

public int getMicroseconds()
Get the microsecond portion of the time the packet was seen. See getSeconds() to get the seconds portion of the time.

Returns:
The microsecond portion of the time.

getRADIUSPacket

public byte[] getRADIUSPacket()
Return the raw RADIUS packet data.

Returns:
packet data.

getSeconds

public int getSeconds()
Get the time in seconds the packet was seen. See getMicroseconds() to get additional time stamp accuracy.

Returns:
The seconds portion of the time.

getSourceIP

public InetAddress getSourceIP()
Get source IP address.

Returns:
source IP address.

getSourcePort

public int getSourcePort()
Get source port.

Returns:
source port.

getTimeStamp

public long getTimeStamp()
Get the current packet's time in microseconds. Note this is not a Java Date time in milliseconds. It's the Snoop timestamp in microseconds. This is the amalgamation of the getSeconds() and getMicroseconds() methods.


toString

public String toString()
String representation of a Snoop Record


AXL Software

Submit a bug report or feature request

Copyright 1998-2010 AXL Software PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.