Decoding of packets