Skip to main content

arcbox_packet/
lib.rs

1//! Zero-copy packet primitives for the ArcBox network datapath.
2//!
3//! Pure, transport-agnostic building blocks with no VM, VirtIO, or I/O
4//! dependencies:
5//!
6//! - [`packet`] — zero-copy packet representation and header parsing.
7//! - [`ethernet`] — Ethernet/ARP framing and TCP/UDP frame construction.
8//! - [`checksum`] — Internet checksum routines (RFC 1071/1624), incremental
9//!   NAT updates, and SIMD-accelerated variants.
10//!
11//! Extracted from `arcbox-net` so non-VM consumers (host-side proxies, packet
12//! tools, tests) can reuse them without pulling in the hypervisor or device
13//! stack.
14
15pub mod checksum;
16pub mod ethernet;
17pub mod packet;