Create the data structure for a packet