Checks if acked packets are not corrupted. Simplifies file and stdin handling.