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

🚀 Feature/cidds flow #17

Merged
merged 12 commits into from
Mar 19, 2024
Merged

🚀 Feature/cidds flow #17

merged 12 commits into from
Mar 19, 2024

Conversation

matissecallewaert
Copy link
Collaborator

Added a cidds flow struct to create cidds flows.
Added a new test to test one cidds function.

Also made architectural changes so now you can choose what flow you want to have exported.

@matissecallewaert matissecallewaert added the enhancement New feature or request label Mar 18, 2024
@matissecallewaert matissecallewaert self-assigned this Mar 18, 2024
env_logger::init();

// Loading the eBPF program for egress, the macros make sure the correct file is loaded
#[cfg(debug_assertions)]
let mut bpf_egress = Bpf::load(include_bytes_aligned!(
"../../target/bpfel-unknown-none/debug/feature-extraction-tool-egress"
let mut bpf_egress_ipv4 = Bpf::load(include_bytes_aligned!(

Check warning

Code scanning / clippy

use of deprecated type alias aya::Bpf: use Ebpf instead Warning

use of deprecated type alias aya::Bpf: use Ebpf instead
))?;

#[cfg(debug_assertions)]
let mut bpf_egress_ipv6 = Bpf::load(include_bytes_aligned!(

Check warning

Code scanning / clippy

use of deprecated type alias aya::Bpf: use Ebpf instead Warning

use of deprecated type alias aya::Bpf: use Ebpf instead
))?;

// Loading the eBPF program for ingress, the macros make sure the correct file is loaded
#[cfg(debug_assertions)]
let mut bpf_ingress = Bpf::load(include_bytes_aligned!(
"../../target/bpfel-unknown-none/debug/feature-extraction-tool-ingress"
let mut bpf_ingress_ipv4 = Bpf::load(include_bytes_aligned!(

Check warning

Code scanning / clippy

use of deprecated type alias aya::Bpf: use Ebpf instead Warning

use of deprecated type alias aya::Bpf: use Ebpf instead
))?;

#[cfg(debug_assertions)]
let mut bpf_ingress_ipv6 = Bpf::load(include_bytes_aligned!(

Check warning

Code scanning / clippy

use of deprecated type alias aya::Bpf: use Ebpf instead Warning

use of deprecated type alias aya::Bpf: use Ebpf instead
@matissecallewaert matissecallewaert merged commit e254d57 into main Mar 19, 2024
3 checks passed
@matissecallewaert matissecallewaert deleted the feature/cidds-flow branch March 19, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant