rustnet-core 0.6.0

Network analysis library: packet parsing, protocol types, deep packet inspection, link-layer parsers, connection merging, and DNS/GeoIP/OUI lookups: the reusable core of rustnet
Documentation

rustnet-core

The reusable network-analysis core of RustNet.

rustnet-core is the platform-independent, capture-independent layer that turns bytes into meaningful network information. It has no dependency on libpcap, raw sockets, or OS process tables: it operates on byte slices and parsed structures, so it can be embedded in any tool that already has packets to analyze.

Features

  • Packet parsing for Ethernet, Linux SLL/SLL2, PKTAP, raw IP, and TUN/TAP link layers, plus IPv4/IPv6, TCP, UDP, ICMP, and IGMP.
  • Deep packet inspection for HTTP, HTTPS/TLS (SNI extraction), DNS, SSH, QUIC, WireGuard, OpenVPN, NTP, mDNS, LLMNR, DHCP, SNMP, SSDP, NetBIOS, and more.
  • Connection merging: fold parsed packets into long-lived connection state with protocol-aware lifecycle tracking and TCP analytics (retransmissions, out-of-order, fast-retransmit).
  • Reusable filtering and retention policy through ConnectionFilter and TrackerConfig, without depending on the terminal UI.
  • Passive DNS analytics with transaction-correlated response latency, response outcomes, timeouts, question aggregates, and health classification.
  • GeoIP lookups against MaxMind GeoLite2 databases.
  • Reverse DNS with background async resolution and caching.
  • OUI vendor and service-name resolution from baked-in datasets (no runtime files required; the data is embedded at compile time).

Layout

Everything lives under the [network] module.

Status

This is an internal RustNet crate. Its API follows workspace needs and may change without compatibility shims. The supported product is the rustnet binary.

License

Apache-2.0