jpcap包下的getDeviceList() 方法
static NetworkInterface[]  getDeviceList()
          Returns the interfaces that can be used for capturing.
这是官网查到的
http://netresearch.ics.uci.edu/kfujii/jpcap/doc/javadoc/index.html
在JpcapCaptor里面
import jpcap.*;
class Tcpdump{
public static void main(String[] args) throws Exception {
NetworkInterface[] devices = JpcapCaptor.getDeviceList();
System.out.println(devices.length);
}
}打印出来是0.....
怎么回事 检测不到我的网卡?
这个怎么解决啊?
是我理解错了么?