Commit Graph

2 Commits

Author SHA1 Message Date
Robert McMahon 5132a667e9 Fix Python parser: improve field parsing robustness and add debug output
- Use int() parsing instead of isdigit() for more robust frame number validation
- Preserve leading tabs with rstrip() instead of strip()
- Add debug output when parsing fails to help diagnose issues
- Handle empty fields and whitespace more gracefully

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 15:01:32 -08:00
Robert McMahon 3cb36bff4b Replace bash/awk parsing with Python script for robust tshark output parsing
- Created parse_tshark_pcap.py to handle tshark field extraction
- Python script gracefully handles missing fields and filters error messages
- Replaced complex bash/awk parsing logic in test_monitor_tshark.sh
- Fixes regression where stderr redirection prevented packet parsing
- Python approach is more maintainable and robust

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 14:58:39 -08:00