Skip to content
Mark Bednarczyk edited this page Feb 3, 2023 · 23 revisions

Welcome to the jNetPcap v2 wiki!

jNetPcap is a java library for native libpcap, WinPcap and Npcap libraries. jNetPcap passes on all java method calls to native functions to perform the actual work. Outside of a very few utility class in the org.jnetpcap.util package, all of the jNetPcap code is related to exposing the native functionality in java environment.

To perform higher level work, you do that in your code, as well as, you can utilize some of the companion modules such as jnetpcap-pro module. The jnetpcap-pro module provides functionality for dissecting and decoding packets and is separate from jnetpcap mdoule. In legacy version 1 of jnetpcap, (hosted on SourceForge.net servers), this functionality used to bundled together in one package. This also created conflicts and made it hard in general to update one side of the version 1 library without impacting the other.

Compatibility with jNetPcap version 1

Version1 of jNetPcap was released some 10 years ago. Version 2 has numerous backward incompatibilities with version 1, but overall version 1 based application can be easily upgraded to version 2.

The license changed from LGPL to a less ristrictive Apache v2 license.

Lastly, version 1 of jNetPcap, had a lot of functionality bundled in that did not belong at the libpcap binding level. In version 2 all extraneous functinality has been factored out into separate modules. This allows greater flexibility and less impact on the main jNetPcap module stability.

Clone this wiki locally