mirror of https://github.com/aya-rs/aya
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.
a8c212377f
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 | 4 years ago | |
src | 4 years ago | |
.gitignore | 4 years ago | |
Cargo.toml | 4 years ago |