wasm-bpf/examples/sockops
officeyutong 2f52ca5930 update: re-structured directories & update CI 2023-02-21 09:20:28 +00:00
..
Makefile update: re-structured directories & update CI 2023-02-21 09:20:28 +00:00
README.md add example sockops in readmd 2023-02-12 03:13:23 +08:00
libbpf-wasm.h update: re-structured directories & update CI 2023-02-21 09:20:28 +00:00
sockops.bpf.c support attach to cgroup and add sockops example 2023-02-11 21:35:04 +08:00
sockops.c support attach to cgroup and add sockops example 2023-02-11 21:35:04 +08:00

README.md

Demo BPF applications

sockops

sockops add the pid int tcp option in syn packet.

We can provide a similar developing experience as the libbpf-bootstrap development. Just run make to build the wasm binary:

make

test the prog load and attach correctly

bpftool prog list | grep -i pid_tcp_opt_inject -A 3 

open wireshark to capture and verify the tcp option(kind 254) is add to option in syn packet