no malloc packet in main function