srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/src/afpacket_capture.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-05-17Add privilege dropping, AF_PACKET demo, ICMP, checksum validation, --help, ↵srdusr1-0/+186
and TCP reassembly Rounds out the build order in PLAN.md with six incremental additions: drop root privileges immediately after opening the capture handle; a standalone AF_PACKET/mmap ring-buffer demo (kept separate from CaptureSession, see its header comment for why); ICMPv4/ICMPv6 type and code decoding; opt-in IPv4/TCP/UDP checksum validation (-c); CLI --help; and opt-in, in-order-only TCP stream reassembly (-a) so HTTP requests/responses split across segments can be seen whole. Each addition is unit-tested and, where it touches live traffic behavior, verified against real captured packets - see PLAN.md's Decisions section for the verification notes on each.