Commit Graph

2 Commits

Author SHA1 Message Date
Robert McMahon d3a4937d0a Add PCAP file reading support and packet size limiting option
- Support reading from PCAP files: python3 test_monitor.py file.pcap
- Add --full-packet flag to capture entire packets (default: header-only, 256 bytes)
- Default snaplen=256 bytes captures 802.11 header + some payload
- Mutually exclusive modes: PCAP file reading vs live interface capture
- Improves memory efficiency by default (header-only capture)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 15:09:23 -08:00
Robert McMahon 04e05c409a Replace bash script with pure Python scapy-based monitor script
- Created test_monitor.py: single Python script using scapy for packet capture
- Removed test_monitor_tshark.sh: replaced by Python solution
- Avoids tshark parsing issues by using scapy directly
- Provides same functionality: RA/TA extraction, histograms, statistics
- Supports --keep-pcap flag for saving pcap files

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 15:04:57 -08:00