Functions etc. for extracting, loading etc. native libraries from the jar file.
clj-net-pcap.CljNetPcapJavaAdapter | Adapter class to enable usage of clj-net-pcap from Java. |
clj-net-pcap.byte-array-extraction-dsl | A simple DSL for extracting data from packets that are represented as byte arrays. |
clj-net-pcap.core | clj-net-pcap is a wrapper/adapter/facade (whatever) around jNetPcap that
enables and ease... |
clj-net-pcap.dsl.transformation | Transformation functions for the simple DSL for extracting data from packets that are represented as... |
clj-net-pcap.main | Main class and method for launching a simple clj-net-pcap based sniffer
that prints some i... |
clj-net-pcap.packet-gen | The packet-gen namespace contains functionality for generating and sending packets. |
clj-net-pcap.packet-offsets | Common offsets of header fields etc. |
clj-net-pcap.pcap | Functions for handling functionality related to org.jnetpcap.Pcap
such as listing network ... |
clj-net-pcap.pcap-data | Convenience functions for processing pcap data like packets and headers. |
clj-net-pcap.self-adaptive-dsl-adjustment | A simple proof of concept for adjusting DSL statements with self-adaptivity. |
clj-net-pcap.sniffer | Convenience functions for easing the implementation of a working
sniffer. |
Index Page | |
Alphabetic Var Index |
Functions etc. for extracting, loading etc. native libraries from the jar file.
Arglists: ========= (copy-resource-to-file source target) Docstring: ========== Copy from Jar to file.
Arglists: ========= (extract-and-load-native-libs) Docstring: ========== Convenience function for extracting and loading the native libraries. Starting with jnetpcap 1.5.x, this is deprecated in favour of extract-and-reference-native-libs.
Arglists: ========= (extract-and-reference-native-libs) Docstring: ========== Convenience function for extracting and referencing the native libraries via System Properties: "clj-net-pcap.lib.[jnetpcap, jnetpcap-pcap100]". This is needed with the new version of jnetpcap as it uses an updated mechanism for loading the native libraries. clj-net-pcap ships a modified version of a part of this jnetpcap mechanism that uses these clj-net-pcap.lib.* properties in JNILibrary/loadLibrary.
Arglists: ========= (extract-native-lib l) Docstring: ========== Extract a single native library l.
Arglists: ========= (extract-native-libs) Docstring: ========== Extract the native libraries.
Arglists: ========= (load-native-libs) Docstring: ========== Load the native libraries. This uses a little hack: The LibLoader Java class is used for actually loading the native libs. Starting with jnetpcap 1.5.x, this is deprecated in favour of extract-and-reference-native-libs.
Arglists: ========= (mk-native-lib-dir) Docstring: ========== Create the dir for extracting the native libraries.
Arglists: ========= (native-lib-dir) Docstring: ========== Returns the directory to which the native libraries will be extracted. This may vary depending on the operating system.
Arglists: ========= (pcap-jar-path p) Docstring: ========== Get the path of the jnetpcap libraries inside the clj-net-pcap jar.
Arglists: ========= (pcap-lib-name p) Docstring: ========== Get the pcap lib names depending on the OS.
Arglists: ========= (pcap-lib-path p) Docstring: ========== Path for an actual library file, given the file name.
Arglists: ========= (register-shutdown-hook) Docstring: ========== Register a JVM shutdown hook to delete native libs temp files. This function aims on registering the shutdown hook once and thus tries to remove a possibly previously registered hook before registering the new one.
Arglists: ========= (remove-native-libs) Docstring: ========== Clean up native libs.
Arglists: ========= (rm-native-lib-dir) Docstring: ========== Remove the native library temp directory.