code for adding decryption/encryption/comp/uncomp for injected packet