Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Cargo.toml dependencies, made two changes related to update o… #118

Merged
merged 4 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/kprobetcp/kprobetcp-ebpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn try_kprobetcp(ctx: ProbeContext) -> Result<u32, i64> {
});
info!(
&ctx,
"AF_INET src address: {:ipv4}, dest address: {:ipv4}",
"AF_INET src address: {:i}, dest address: {:i}",
src_addr,
dest_addr,
);
Expand Down
2 changes: 1 addition & 1 deletion examples/tc-egress/tc-egress-ebpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn try_tc_egress(ctx: TcContext) -> Result<i32, ()> {
TC_ACT_PIPE
};

info!(&ctx, "DEST {:ipv4}, ACTION {}", destination, action);
info!(&ctx, "DEST {:i}, ACTION {}", destination, action);

Ok(action)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/xdp-drop/xdp-drop-ebpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn try_xdp_firewall(ctx: XdpContext) -> Result<u32, ()> {
} else {
xdp_action::XDP_PASS
};
info!(&ctx, "SRC: {:ipv4}, ACTION: {}", source, action);
info!(&ctx, "SRC: {:i}, ACTION: {}", source, action);

Ok(action)
}
4 changes: 2 additions & 2 deletions examples/xdp-drop/xdp-drop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
xdp-drop-common = { path = "../xdp-drop-common", features = ["user"] }
anyhow = "1"
clap = { version = "4.1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/xdp-drop/xdp-drop/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async fn main() -> Result<(), anyhow::Error> {

// (1)
let mut blocklist: HashMap<_, u32, u32> =
HashMap::try_from(bpf.map_mut("BLOCKLIST")?)?;
HashMap::try_from(bpf.map_mut("BLOCKLIST").unwrap())?;

// (2)
let block_addr: u32 = Ipv4Addr::new(1, 1, 1, 1).try_into()?;
Expand Down
4 changes: 2 additions & 2 deletions examples/xdp-hello/xdp-hello/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
tamird marked this conversation as resolved.
Show resolved Hide resolved
aya-log = { git = "https://github.com/aya-rs/aya", branch = "main" }
xdp-hello-common = { path = "../xdp-hello-common", features = ["user"] }
anyhow = "1"
clap = { version = "4.1", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/xdp-log/xdp-log-ebpf/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn try_xdp_firewall(ctx: XdpContext) -> Result<u32, ()> {
// (3)
info!(
&ctx,
"SRC IP: {:ipv4}, SRC PORT: {}", source_addr, source_port
"SRC IP: {:i}, SRC PORT: {}", source_addr, source_port
);

Ok(xdp_action::XDP_PASS)
Expand Down
4 changes: 2 additions & 2 deletions examples/xdp-log/xdp-log/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
xdp-log-common = { path = "../xdp-log-common", features = ["user"] }
anyhow = "1"
clap = { version = "4.1", features = ["derive"] }
Expand Down