mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-06-04 18:01:24 +00:00
d4280befd4
## Summary - The **HB** (hash bytes) column in the packet list always read byte 1 of `raw_hex` to compute the hash size - For TRANSPORT routes (`route_type` 0 or 3), the path_len byte sits at offset 5 — bytes 1–4 are transport codes - Reading byte 1 for these packets produced the wrong hash size (e.g. `0xBB` → bits 7-6 = `10` → **3** instead of the correct **2**) - Fix: use `getPathLenOffset(route_type)` at all three render sites (grouped header, grouped children, flat row) - For grouped children that have no `raw_hex`, fall back to deriving hash size from the path_json hop string lengths ## Test plan - [ ] Open a TRANSPORT FLOOD packet (`route_type=0`) in the packet list — HB column now shows the correct value (e.g. 2 instead of 3) - [ ] Verify FLOOD packets (`route_type=1`) still show the correct hash size (byte 1 unchanged for non-transport routes) - [ ] Expand a grouped packet row and confirm child rows show correct hash size from path_json hop lengths 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>