views:

150

answers:

3

I am writing an application to save the captured IP packets to file. Which of the following packet capture format is better suited for use as the file format? Click on the link for more information on each.

In addition, is there a C# library for any of the above format?

+2  A: 

I'd go for PCAP, as most tools I usually work with support it (Wireshark, tcpdump, etc.)

WinPCAP wrapper for .NET: http://www.tamirgal.com/blog/page/SharpPcap.aspx

Vinko Vrsalovic
A: 

I use pcap (because it is supported by a lot of tools and libraries for every language) but do note there is another format, ncap.

bortzmeyer
A: 

I would also recommend pcap.

I recommend a great WinPcap wrapper to use in C# or VB.NET (.NET wrapper) called Pcap.Net: http://pcapdotnet.codeplex.com

brickner