don't alloc memory for checkInPacket, make it stack to function