import re import struct # Helper to read uint16 from bytes def read_u16_le(data: bytes, offset: int) -> int: if offset + 2 > len(data): return None return struct.unpack_from('= 5: break print("\nSample of Len 45 packets:") count = 0 for len_str, hex_str in warnings: if len_str == "45": print(f" {hex_str}") count += 1 if count >= 5: break