Giter Club home page Giter Club logo

efvicap's Introduction

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 <[email protected]>.

efvicap's People

Contributors

rigtorp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

efvicap's Issues

is there a way to capture TX packets?

I tried to replace ef_vi_receive_... with ef_vi_transmit_... in "Refill the RX descriptor ring" segment but it did not work.

Looking forward for your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.