Skip to content

eiguleo/bpf-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compile

clang -o get-index get-index.c
clang -O2 -Wall -target bpf -c xdp-example.c -o xdp-example.o

get interface index

./get-index

apply

sudo ip link set dev eth0 xdp obj xdp-example.o

remove

sudo ip link set dev eth0 xdp off

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages