Code Monkey home page Code Monkey logo

opened_transformation's Introduction

hook-point-transformer

OPENED Transformation Tool LPC 2022 blurb describing the goal of the tool and an initial prototype is here: https://lpc.events/event/16/contributions/1370/

Works for Ubuntu 20.04 and Linux kernel 5.4.0-131

How to Download?

git clone --recurse-submodules [email protected]:palanik1/opened_transformation.git

How to Build?

docker build . -t opened/transform:0.01

How to Install?

docker run -it --mount type=bind,src=[host_dir],dst=/root/op opened/transform:0.01

How to verify equivalence of XDP and TC code

Running verifier

Run verifier.sh. The script performs the following steps

  1. Sets up two network namespaces on the host
  2. Runs a python server in ns2 and scapy based python client in ns1
  3. Attaches XDP code to veth2 and runs tcpdump on veth2, capturing output in recv-xdp.pcap
  4. Repeats steps 1 and 2 above and attaches TC code to veth2, capturing tcpdump output in recv-tc.pcap
  5. Finally, the script runs a pcap-diff utility to check if packets captured in both pcap files are same or not. If there is any difference, the script raises an alert.

opened_transformation's People

Contributors

sdsen avatar palanik1 avatar pkodeswaran avatar

opened_transformation's Issues

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.