-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NullPointerException: null for tun0 interface (is my fix reasonable?) #37
Comments
I had thought pcap_addr.addr is never null. |
This is f5fpc vpn client Also found that with that fix I get some usb devices and even dbus stuff in findAllDevs() list. name: [enp0s25] description: [null] address: [/10.0.20.3] loopBack: [false]] local: [true] |
I installed f5fpc but couldn't create a tunnel. Probably it needs a server. |
I have downloaded jna and slf4j-api jars manually (not using sbt, Idea, like in original case), here is the result: java -cp pcap4j-core-1.4.1-20150426.042853-5.jar:jna-4.1.0.jar:slf4j-api-1.7.12.jar org.pcap4j.core.ListDevs
java -version |
Thank you for your corporation. I found tun0 has a pcap_address which has only dstaddr and Pcap4J doesn't properly handle such one. |
It works now, and thanks a lot for a nice library! |
Thank you! |
Same issue with openvpn tunnel, fix works too. |
Thank you for the information. I tried openvpn and found it makes the same kind of tunnel, and I confirmed pcap4j can list the addresses with the fix. |
with
But Pcap4j only gives the following devices
The ppp |
I'm interested in the |
Sorry for late response. |
@kaitoy no. my mistake. I can parse PPP now. |
I have tun0 interface, he is the cause of problem
I have found that changing PcapNetworkInterface.java
from
to
solves the problem and build goes fine.
The text was updated successfully, but these errors were encountered: