Set dwPacketNumber when State changed