You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Alessandro Decina a8c212377f bpf: make program() and program_mut() return inner program types
program() and program_mut() are now generic and can return the inner
program type, which is what you want 99.999% of the time, eg:

    let prog = bpf.program_mut::<&mut Xdp>("foo")?.unwrap();
    prog.load()?;
    prog.attach("eth0")?;

The methods will fail if the requested program is not of the expected
type (eg if you try to retrieve a kprobe as an xdp program).
4 years ago
scripts Initial commit 4 years ago
src bpf: make program() and program_mut() return inner program types 4 years ago
.gitignore Initial commit 4 years ago
Cargo.toml Initial commit 4 years ago