Skip to content

Commit

Permalink
gitignore Cargo.lock, update :ipv6 -> :i
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Jun 27, 2023
1 parent 308d6f8 commit 3326756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/kprobetcp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
# Cargo.lock
Cargo.lock

# editor directories
.vim/
Expand Down
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 @@ -55,7 +55,7 @@ fn try_kprobetcp(ctx: ProbeContext) -> Result<u32, i64> {
let dest_addr = sk_common.skc_v6_daddr;
info!(
&ctx,
"AF_INET6 src addr: {:ipv6}, dest addr: {:ipv6}",
"AF_INET6 src addr: {:i}, dest addr: {:i}",
unsafe { src_addr.in6_u.u6_addr8 },
unsafe { dest_addr.in6_u.u6_addr8 }
);
Expand Down

0 comments on commit 3326756

Please sign in to comment.