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
git clone --recurse-submodules git@github.com:palanik1/opened_transformation.git
docker build . -t opened/transform:0.01
docker run -it --mount type=bind,src=[host_dir],dst=/root/op opened/transform:0.01
Run verifier.sh. The script performs the following steps
- Sets up two network namespaces on the host
- Runs a python server in ns2 and scapy based python client in ns1
- Attaches XDP code to veth2 and runs tcpdump on veth2, capturing output in recv-xdp.pcap
- Repeats steps 1 and 2 above and attaches TC code to veth2, capturing tcpdump output in recv-tc.pcap
- 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.