ebpf-samples
ebpf-samples copied to clipboard
Add test to check dependent reads
Test to check behavior of dependent reads.
- Check that packet size is > 4 bytes.
- If true, set flag.
- If flag is set, access packet.
alanjo@alanjo-dev2:~/ebpf-verifier$ sudo ./check ebpf-samples/build/dependent_read.o --dom linux
1,0.000427,4996
alanjo@alanjo-dev2:~/ebpf-verifier$ sudo ./check ebpf-samples/build/dependent_read.o
0,0.008814,5024
Verification of this sample passes on Linux verifier, but fails with prevail.
Need to account for different packet layout on Linux vs Windows.
Working on getting a version that passes Linux verifier, but fails prevail.