Rearrange packet.