This is our old Q&A Site. Please post any new questions and answers at

I use tshark to analyze packets, and want to save the packets that I concerned into a separate pcap/pcapng file(in order to have a look at the packets later). Now that I can get packet info(pinfo), how can I write it into a pcap file?

asked 02 Apr '14, 20:53

metamatrix's gravatar image

accept rate: 100%

This command did it for me: -r infile -w outfile -Y Display Filter -F file format

tshark -r vit.pcapng -Y tcp.analysis.flags -w vit_tcpflags.pcap -F pcap
permanent link

answered 03 Apr '14, 09:33

mrEEde's gravatar image

accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 02 Apr '14, 20:53

question was seen: 31,586 times

last updated: 03 Apr '14, 09:33

p​o​w​e​r​e​d by O​S​Q​A