Refactor header generation

Modify generateFullAckMessage to use shared.CreatePacket