Libpcap wrapper

wirelen < buffer len in the pcap offline capture example [new development release]

Hi, I am following the example given on the website, http://jnetpcap.com/examples/offline

But after running some time I am getting the following exception
illegal argument exception.
wirelen < buffer len
In the tutorial there is no option to change the buffersize or wirelen buffer size. So, how can I have a workaround this problem?

Does jnetpcap support reading pcap-ng files?

Hi,

Apologies in advance if this is documented somewhere - maybe I can't see it for looking. If it is supported, do I need to specify that the file I'm opening is in NG format or does jnetpcap automatically detect it?

Thanks and regards...Paul

Paul Offord
Advance7

can jnetpcap use jna instead of jni?

At first, thanks for your contribution.

just as a question: will jnetpcap become better if uses jna instead of jni?
if using jna, you will not need to compile native wrapper (such as jnetpcap.dll) for various platform, we can link libpcap.so (or wpcap.dll) with java class directly, only one jar library is enough. it will also support the max number of platforms, for example MacOS, BSD, etc. jna can do these for you.

just an idea: why not split jnetpcap to more functional jars? like what many java frameworks do.
For example, such as jnetpcap.jar for pure wrapper, jnetanalyzer.jar for analyzing various packet protocol, jnetdump.jar for dumping or reading packets, other jars for other functions. splitting them to different project functionally make better to use them. sometimes, somebody maybe only want to get an analyzer but dumper, And sometimes oppositely.

Which version of lipcap use for jnetpcap 1.3

i am use lipcap 0.8 for my applicaion.But my jenetpcap not support 0.8 vesion.I can not change it.In 0.8 version How i use Jnetpcap to create a pcap file in 0.8 version .please one one help me.

Which version of lipcap use for jnetpcap 1.3

i am use lipcap 0.8 for my applicaion.But my jenetpcap not support 0.8 vesion.I can not change it.In 0.8 version How i use Jnetpcap to create a pcap file in 0.8 version .please one one help me.

Syndicate content