嘿,我正在尝试捕获所有ICMP流量,并且我使用此异常进行堆叠:
Opening file for reading: tmp-capture-file.pcap
Src: 192.168.1.15 Dst: 192.168.1.22
Exception in thread "main" java.lang.NullPointerException
at org.jnetpcap.nio.JBuffer.check(JBuffer.java:108)
at org.jnetpcap.nio.JBuffer.getUShort(JBuffer.java:415)
at org.jnetpcap.protocol.tcpip.Tcp.destination(Tcp.java:1199)
at Main$3.nextPacket(Main.java:304)
at Main$3.nextPacket(Main.java:1)
at org.jnetpcap.Pcap.loop(Native Method)
at org.jnetpcap.Pcap.loop(Pcap.java:2445)
at Main.Check(Main.java:344)
at Main.main(Main.java:43)
TCP,UDP工作正常,但ICMP不允许我继续