PCAP Preload Build the shared library: cargo build --release Or if Nix is installed. And flakes is enabled: nix build . Example usage: PCAP_LOG_FILE=peer_512.pcap LD_PRELOAD=libpcap_preload.so ./student_peer.elf 0 10 100