-
-
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
Read addresses for interfaces #11
Comments
Your code looks correct. I'm not sure where the cause is, but I've ever seen the same issue when I tried Pcap4J with WinPcap installed just before the try. At that time the issue was resolved by rebooting Windows. You may be able to resolve it by rebooting. |
I'm actually using Mac OS X, not Windows and have Wireshark installed and working. When using tcpdump everything works as expected, but when executing the test above it still returns number of addresses: 0! |
Even tomute's Mac OS X test you have linked on your page (see: here: http://tomute.hateblo.jp/entry/2013/01/27/003209) is mentioning the same problem. Do you have any ideas how to fix that? |
It seems to be a defect in pcap4j. I don't have Mac OS X now but I'll investigate the defect somehow. |
Fixed. Not tested on Mac OS X but on FreeBSD. Please build pcap4j from the latest source and try it on Mac OS X. |
It's working now! Please provide Central Repository maven dependency for the fixed code. Thanks for fast action. Thumbs up |
Thanks for the try. But I found some more problems around IP address discovery. I will fix them and register the fixed pcap4j with the central repository hopefully in the next week. |
I'm looking forward to that :) |
Done! |
Here a simple test case iterating all interfaces and all related addresses:
Shouldn't that return anything? Actually I don't get any address for one of the interfaces. It only returns:
"number of addresses: 0"
for all network interfaces. Even the one's, that are connected!
Is this a bug of Pcap4J or did I miss anything?
The text was updated successfully, but these errors were encountered: