title: Converting Pcap file to CSV file while defautly keeping all features/fields defined in pcap
body: <p>I have been searching for libraries that can transform PCAP files to CSV format while keeping all the details defined in the pcap file, without explicitly defining which features/fields that i want to include in CSV format. </p>
  
  <p>I have tested tools such as Wireshark, tshark, and tcpdump, but I think for all of them that I have to manually specify the list of features/columns that to be included in my data. Is there a way that I can transform pcap file to csv file and keep all pcap details by default without having to manually listing all the features to include in csv? </p>
  
  <p>Edit to add Code Example: </p>
  
  <pre class="lang-sh prettyprint-override"><code>$ tshark -r traffic.pcap &gt; traffic.csv
  $ tshark -r traffic.pcap -T fields -e ip.src -E separator=, \
      -E occurrence=f &gt; traffic.csv
  </code></pre>
  
  <p>In any case, the traffic.csv contains only general information (e.g., No., Time, Source, Destination, Length, Protocol, Info) of the traces without any packet detail. Is there a way I can also have the the details of each packet in the csv file?</p>
  
  <p>Any kind insight is greatly appreciated.</p>