jnetpcap.capture
Enum CaptureInterface.Capability

java.lang.Object
  extended by java.lang.Enum<CaptureInterface.Capability>
      extended by jnetpcap.capture.CaptureInterface.Capability
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CaptureInterface.Capability>
Enclosing interface:
CaptureInterface

public static enum CaptureInterface.Capability
extends java.lang.Enum<CaptureInterface.Capability>

Enum structure which defines the capabilities of the capturing device such as a network interface and the kernel of this particular OS.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
Address
          Main address of the device or interface is known.
CounterDrops
          Device can report number of packets that were dropped while being recieved.
CounterInErrors
          Device can report number of inbound packets that contained errors as a total
CounterInOctets
          Device can report number of inbound octets on this device as a total
CounterOutErrors
          Device can report number of outbound packets that were dropped due to errors
CounterOutOctets
          Device can report nmber of outbound octets on this device as a total
DataEncapsulation
          The data encapsulation of the captured packet is deterministic and known.
KernelFilter
          OS supports kernel filtering of packets.
OSArchitecture
          Architecture of the system that the operation system is running on.
OSName
          Operating system name on which the capture device captured the packet.
OSVersion
          Operating system version on which the capture device captured the packet.
 
Method Summary
static CaptureInterface.Capability valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CaptureInterface.Capability[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Address

public static final CaptureInterface.Capability Address
Main address of the device or interface is known. This can be useful information for some analysis applications which need to know the network number of the interface the packets were captured on.


CounterDrops

public static final CaptureInterface.Capability CounterDrops
Device can report number of packets that were dropped while being recieved. This could have been attributed to errors, out buffer memory or CPU cycles.


CounterInErrors

public static final CaptureInterface.Capability CounterInErrors
Device can report number of inbound packets that contained errors as a total


CounterInOctets

public static final CaptureInterface.Capability CounterInOctets
Device can report number of inbound octets on this device as a total


CounterOutErrors

public static final CaptureInterface.Capability CounterOutErrors
Device can report number of outbound packets that were dropped due to errors


CounterOutOctets

public static final CaptureInterface.Capability CounterOutOctets
Device can report nmber of outbound octets on this device as a total


DataEncapsulation

public static final CaptureInterface.Capability DataEncapsulation
The data encapsulation of the captured packet is deterministic and known. You can use the CaptureInterface.getDataEncapsulation() method.


KernelFilter

public static final CaptureInterface.Capability KernelFilter
OS supports kernel filtering of packets.


OSArchitecture

public static final CaptureInterface.Capability OSArchitecture
Architecture of the system that the operation system is running on. This typically the value as returned by system property os.arch.


OSName

public static final CaptureInterface.Capability OSName
Operating system name on which the capture device captured the packet.


OSVersion

public static final CaptureInterface.Capability OSVersion
Operating system version on which the capture device captured the packet.

Method Detail

values

public static final CaptureInterface.Capability[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CaptureInterface.Capability c : CaptureInterface.Capability.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CaptureInterface.Capability valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name