diff --git a/{{project-name}}/Cargo.toml b/{{project-name}}/Cargo.toml index 0491123..37a4c3e 100644 --- a/{{project-name}}/Cargo.toml +++ b/{{project-name}}/Cargo.toml @@ -5,8 +5,8 @@ edition = "2021" publish = false [dependencies] -aya = { version = ">=0.11", features=["async_tokio"] } -aya-log = "0.1" +aya = { git = "https://github.com/aya-rs/aya", branch = "main", features=["async_tokio"] } +aya-log = { git = "https://github.com/aya-rs/aya", branch = "main" } {{project-name}}-common = { path = "../{{project-name}}-common", features=["user"] } anyhow = "1.0.42" clap = { version = "3.1", features = ["derive"] } diff --git a/{{project-name}}/src/main.rs b/{{project-name}}/src/main.rs index ed1e90d..832a918 100644 --- a/{{project-name}}/src/main.rs +++ b/{{project-name}}/src/main.rs @@ -115,7 +115,7 @@ async fn main() -> Result<(), anyhow::Error> { let _ = tc::qdisc_add_clsact(&opt.iface); let program: &mut SchedClassifier = bpf.program_mut("{{crate_name}}").unwrap().try_into()?; program.load()?; - program.attach(&opt.iface, TcAttachType::{{direction}})?; + program.attach(&opt.iface, TcAttachType::{{direction}}, 0)?; {%- when "cgroup_skb" -%} let program: &mut CgroupSkb = bpf.program_mut("{{crate_name}}").unwrap().try_into()?; let cgroup = std::fs::File::open(opt.cgroup_path)?;