jNetPcap SDK provides high-performance network packet capture and deep protocol dissection for Java applications. Built on Java 22+ Foreign Function & Memory API for native libpcap access with zero-copy performance.
jNetPcap 3.0 is a complete rewrite bringing modern Java capabilities:
Java 22+ with Panama FFM — Native libpcap access without JNI
Zero-allocation capture — Pre-allocated headers for 100M+ packets/second
Modular architecture — Pick only the protocol packs you need
Apache 2.0 open source — All modules now fully open source
Simplified API — PacketSettings replaces complex configuration
Automatic parsing of 50+ protocols across L2-L7:
Layer 2 — Ethernet, VLAN (802.1Q), MPLS, PPP, STP, LLDP
Layer 3 — IPv4, IPv6, ARP, ICMP, IPsec
Layer 4 — TCP, UDP, SCTP
Application — HTTP, TLS, DNS, QUIC (optional packs)
Headers are pre-allocated and rebound on each packet — no object creation in the hot path:
Keep packets beyond callback scope with explicit persistence:
High-volume capture with predictable memory usage:
jnetpcap-sdk: Starter POM — pulls all dependencies
jnetpcap-api: High-level NetPcap API with dissection
jnetpcap-bindings: Low-level libpcap FFM bindings
sdk-common: Memory managment, pools, FFM and more
sdk-protocol-core: Protocol Header, Packet Dissection and Protocol Stack definitions
sdk-protocol-tcpip: Ethernet, IPv4/6, TCP, UDP, ICMP
sdk-protocol-web: HTTP, TLS, DNS, QUIC (optional)
sdk-protocol-infra: BGP, OSPF, STP, LLDP (optional)
jNetPcap SDK includes a free unlimited Community Edition license.
Internet connectivity required for activation
No registration or API keys needed
Apache 2.0 with telemetry
For commercial licenses without telemetry, contact sales@slytechs.com.
Full Protocol Stack Processing (End of January 2026):
IP fragment reassembly
TCP stream reconstruction
Protocol state tracking
Advanced packet transformations