I'm using tshark to capture network traffic as pcap file but when the dumping is done the captured file format is pcapng at the end! I don't know what is the problem! I use this command in my Linux shell: asked 09 Aug '16, 02:57 met1366 edited 09 Aug '16, 21:25 Guy Harris ♦♦ |
One Answer:
You need to specify libpcap as -F parameter:
answered 09 Aug '16, 03:06 Jasper ♦♦ |
Hmm.
tshark -F
shows the options, and for a master build I get:Interesting - you're right, same for me. I always use "libpcap" and it still seems to work. But "pcap" also works. I think older versions only had "libpcap" as parameter option.
So maybe @met1366 needs to upgrade his tshark binaries.
The problem was I had tshark version 1.10.6 which had a bug not to capture pcap file! I've already upgraded to latest version and now it's fixed.
Thanks
You can use either pcap or libpcap since this commit.