Skip to content

erfvicap is a packet capture tool for network adapters from Solarflare

License

Notifications You must be signed in to change notification settings

rigtorp/efvicap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

efvicap

GitHub

efvicap is a packet capture tool for network adapters from Solarflare. It uses the ef_vi API for direct access to DMA memory and can capture traffic intended for applications accelerated with OpenOnload

Usage

usage: efvicap [-i iface] [-w file] [filters...]

  -i iface    Interface to capture packets from
  -w file     Write packets in pcap format to file

Using an empty filter captures all packets (requiers a SolarCapture license).

Example

Print info about all received packets:

$ efvicap -i eth0

Save packets to out.pcap:

$ efvicap -i eth0 -w out.pcap

Pipe packets to tcpdump and print only UDP packets:

$ efvicap -i eth0 -w - | tcpdump -r - udp

Save UDP packets sent to 230.0.0.1:5000 and 230.0.0.2:6000:

$ efvicap -i eth0 -w out.pcap 230.0.0.1:5000 230.0.0.2:6000

Building & Installing

efvicap requires CMake 3.6 or higher to build and install.

Building:

$ cd efvicap
$ mkdir build
$ cd build
$ cmake ..
$ make

Installing:

$ make install

TODO

  • Hardware timestamping
  • Multiple interfaces
  • Separate thread for writing to disk
  • Compression

About

This project was created by Erik Rigtorp <erik@rigtorp.se>.

About

erfvicap is a packet capture tool for network adapters from Solarflare

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published