Adjusted packet length decoding to add the two length bytes.