12 Commits

Author SHA1 Message Date
Daniel Pupius
4f6ee2ffde go fmt 2025-05-02 13:50:28 -07:00
Daniel Pupius
f580249162 Another checkpoint moving to proto defined packets 2025-04-21 18:27:55 -07:00
Daniel Pupius
86380cccf9 Refactor protos 2025-04-21 15:40:10 -07:00
Daniel Pupius
9b73057103 Remove RawEnvelope, RawPacket, and RawData from DecodedPacket struct
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-21 10:30:15 -07:00
Daniel Pupius
4f4f927d54 Enhance error display with raw data for packets with decode errors 2025-04-21 09:35:19 -07:00
Daniel Pupius
bc9aff9d02 Enhance message decoder with additional port support
- Add support for decoding MAP_REPORT_APP, TRACEROUTE_APP, and NEIGHBORINFO_APP messages
- Create formatters for RouteDiscovery and NeighborInfo messages
- Remove JSON output from all formatters for cleaner display
- Update tests to check for proper formatting

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 17:40:17 -07:00
Daniel Pupius
f10111e37d Better handling of map reports 2025-04-20 17:18:26 -07:00
Daniel Pupius
2f8ee3c9e1 Use DecodeMessage for map format packets
- Simplify design by using DecodeMessage for map format too
- Remove redundant DecodeMapReport function
- Update FormatTopicAndMapData to format decoded packets
- Improve handling of map format packets

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 16:53:51 -07:00
Daniel Pupius
2a7bc97a80 Add MapReport decoding and formatting support
- Added DecodeMapReport function to decode protobuf MapReport messages
- Added FormatMapReport function to display MapReport data in human-readable format
- Updated FormatTopicAndMapData to use the proper decoder and formatter
- Improved error handling with fallback to raw display

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 16:07:46 -07:00
Daniel Pupius
42304465a3 Add support for map format messages
- Added handling for topics with "map" format (2/map)
- Display map data as readable text rather than hex
- Added new FormatTopicAndMapData function to formatter.go
- Added map format condition in main.go message handler

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 16:00:35 -07:00
Daniel Pupius
0c92ace2fa Separate decoding and formatting into dedicated files
- Created new formatter.go file with all formatting functions
- Replaced deprecated FormatData with improved FormatDataMessage
- Updated main.go to separate decoding and formatting steps
- Created specialized formatting functions for different message types
- Better separation of concerns for improved maintainability

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-20 15:32:44 -07:00
Daniel Pupius
ef3cd1a931 Separating decoder and formatter 2025-04-20 15:04:07 -07:00