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: 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).
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
efvicap requires CMake 3.6 or higher to build and install.
Building:
$ cd efvicap
$ mkdir build
$ cd build
$ cmake ..
$ make
Installing:
$ make install
- Hardware timestamping
- Multiple interfaces
- Separate thread for writing to disk
- Compression
This project was created by Erik Rigtorp <erik@rigtorp.se>.