Skip to content

Commit

Permalink
[Agent] Support reorder ebpf packet
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchaoa committed Mar 8, 2024
1 parent 9b050f6 commit fc8936c
Show file tree
Hide file tree
Showing 13 changed files with 463 additions and 77 deletions.
8 changes: 8 additions & 0 deletions agent/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ cgroups-rs = "0.2.9"
nix = "0.23"
pcap = "0.9.1"
procfs = { git = "https://github.com/deepflowio/procfs/" }
reorder = { path = "plugins/reorder" }

[target.'cfg(target_os = "linux")'.dependencies]
k8s-openapi = { version = "^0.15", features = ["v1_19", "schemars"] }
Expand Down
5 changes: 5 additions & 0 deletions agent/crates/public/src/l7_protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,8 @@ impl L7ProtocolEnum {
}
}
}

pub trait L7ProtocolChecker {
fn is_disabled(&self, p: L7Protocol) -> bool;
fn is_enabled(&self, p: L7Protocol) -> bool;
}
2 changes: 1 addition & 1 deletion agent/plugins/reorder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
public = { path = "../../crates/public"}
public = { path = "../../crates/public"}

0 comments on commit fc8936c

Please sign in to comment.