Coder Social home page Coder Social logo

stefangense / packetdrill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nplab/packetdrill

0.0 0.0 0.0 2.39 MB

packetdrill with UDPLite and SCTP support and bug fixes for FreeBSD

Shell 0.80% C 86.26% Emacs Lisp 0.38% Yacc 10.72% Lex 1.25% Vim Script 0.60%

packetdrill's Introduction

packetdrill

Coverity Scan Build Status

A fork of packetdrill which adds support for

and generic bugfixes, espcially several fixes required to get packetdrill working on FreeBSD. MacOS (El Capitan and higher) is also supported.

Information

There are some papers (;login: October 2013, USENIX ATC '13) and a presentation (ICCRG IETF87) describing packetdrill.

Installation

MacOS (El Capitan and higer)

Download the sources, compile them and install the binary:

git clone https://github.com/nplab/packetdrill.git
cd packetdrill/gtests/net/packetdrill/
./configure
make
sudo cp packetdrill /usr/bin

Linux (Ubuntu)

For installing the required packages run:

sudo apt-get install make git libsctp-dev bison flex python

Then download the sources, compile them and install the binary:

git clone https://github.com/nplab/packetdrill.git
cd packetdrill/gtests/net/packetdrill/
./configure
make
sudo cp packetdrill /usr/bin

FreeBSD

For installing the required packages run:

sudo pkg install git bison python

Then download the sources, compile them and install the binary:

git clone https://github.com/nplab/packetdrill.git
cd packetdrill/gtests/net/packetdrill/
./configure
make
sudo cp packetdrill /usr/local/bin

To be able to run packetdrill in combination with sudo run

sudo sysctl -w vm.old_mlock=1

or add

vm.old_mlock=1

to /etc/sysctl.conf and reboot.

Windows (Windows 11)

packetdrill has no Windows support, but the packetdrill remote mode works inside the Windows Subsystem for Linux version 1 (WSL1). Note, WSL1 maps Linux system calls to Windows system calls, whereas WSL2 is basically a Linux VM. To test the Windows implementation, WSL1 is required.

Follow the Linux instructions for installation.

The packetdrill remote mode requires two hosts, the wire_client (i.e., the system under test, Windows) and the wire_server (i.e., the system that captures the packets, e.g. Ubuntu).

To start the wire_server with interface enp0s5f0 connecting to wire_client.

sudo packetdrill --wire_server --wire_server_dev=enp0s5f0

To start the wire_client on Windows, first start a cmd as Administrator and run wsl within it. Inside the wsl, run

sudo packetdrill --wire_client --wire_client_dev=eth1 --wire_server_ip=10.1.2.3 <script_path>

where eth1 is wsl's interface to the wire_server and 10.1.2.3 is the real IP address of wire_server's enp0s5f0 interface.

Continous Integration

The status of continous integration testing is available from Buildbot.

packetdrill's People

Contributors

tuexen avatar hoelscher avatar theaomx avatar nealcardwell avatar shivansh avatar msvoelker avatar mneilsen avatar rscheff avatar weinrank avatar gvnn3 avatar jijianwen avatar hirenp avatar matttbe avatar yweweler avatar murraystokely avatar

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.