format_packet() draft