clj-net-pcap

clj-net-pcap

#Network & Cloud#Network Security

A tool for creating custom policies for IEE policies

Visit Website

clj-net-pcap: A Wrapper for Simplified Packet Capturing in Clojure

clj-net-pcap serves as a wrapper, adapter, or facade around jNetPcap, making it easier to capture packets using Clojure.

Requirements and Dependencies

The clj-net-pcap library is currently available for both Linux and Windows operating systems, supporting x86 and x86_64 architectures. Please be aware that clj-net-pcap relies on native packet capturing libraries.

For Linux, this is the libpcap library

For Linux, the relevant library is known as the libpcap library.

For Windows, this is the winpcap library

Typically, these libraries need to be installed separately. On Linux, this is usually accomplished through the package manager specific to the distribution you are using. When working with clj-net-pcap via Leiningen or Maven, all Java and Clojure-related dependencies should be resolved and automatically downloaded. Additionally, please note that on Linux, clj-net-pcap expects the libpcap library to be named 'libpcap.so'. If it is named differently, you can resolve this issue by creating a symbolic link, as demonstrated for Fedora below: sudo ln -s /usr/lib64/libpcap.so.1 /usr/lib64/libpcap.so. Usage: clj-net-pcap is primarily designed to serve as a library for other applications.

Running the Application as a Stand-Alone Command Line Tool

You can run it as a sample stand-alone command line application using the following command: java -jar clj-net-pcap-standalone-jar-file