com.gremwell.jnetbridge
Class PcapUtils

java.lang.Object
  extended by com.gremwell.jnetbridge.PcapUtils

public class PcapUtils
extends java.lang.Object


Constructor Summary
PcapUtils()
           
 
Method Summary
static java.util.List<org.jnetpcap.PcapIf> getAllPcapDevices(boolean rescan)
          This function returns a list of all available PcapIfs.
static java.util.List<org.jnetpcap.PcapIf> getPcapDevices(boolean rescan, int dlt)
          This function returns a list of PcapIfs with certain DLT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PcapUtils

public PcapUtils()
Method Detail

getAllPcapDevices

public static java.util.List<org.jnetpcap.PcapIf> getAllPcapDevices(boolean rescan)
                                                             throws PcapException
This function returns a list of all available PcapIfs.

Parameters:
rescan -
Returns:
Throws:
PcapException

getPcapDevices

public static java.util.List<org.jnetpcap.PcapIf> getPcapDevices(boolean rescan,
                                                                 int dlt)
                                                          throws PcapException
This function returns a list of PcapIfs with certain DLT.

Parameters:
rescan - If true, don't use cached data
dlt - DLT constant, for example PcapDLT.CONST_EN10MB
Returns:
Throws:
PcapException