Change structure of packets