file describing a packet. If filename is not provided a temporary file is created and gs is called. :param filename: the file's filename r