Check packet length to make sure that at least 5 bytes are there.