OpenSource For You

PCAP (packet capture)

-

Issues of intrusion in the network by different media can be tackled by making use of PCAP (packet capture), which has an applicatio­n programmin­g interface (API) for capturing network traffic from ports, IP addresses and associated parameters. In the case of UNIX-like systems, PCAP is implemente­d in the Libpcap library. In Windows, it is implemente­d through WinPcap, which is the Windows version of Libpcap.

The base API of PCAP is in the C programmin­g language. To implement PCAP in other programmin­g languages such as Java, .NET and Web-based scripting languages, a wrapper is used, but remember that neither Libpcap nor WinPcap provide these wrappers by default. In the case of C++, the programs can link directly to the C API or make use of an object-oriented wrapper.

The MIME type for the file format that is created and read by Libpcap is applicatio­n/vnd.tcpdump.pcap. The classical file extension for PCAP is .pcap. In some tools, .cap and .dmp file extensions are also used.

Libpcap and WinPcap are associated, in terms of packet capturing as well as filtering engines, with many open source and commercial network tools. These include protocol analysers (packet sniffers), network investigat­ors, network IDEs, traffic generators and network analysers.

A feature of Libpcap is that the captured files can be exported and saved to a file. A captured file that is saved in the format that Libpcap and WinPcap use can be easily analysed by applicatio­ns that understand this format, including tcpdump, Wireshark, NetworkMin­er and many others.

Newspapers in English

Newspapers from India