Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
33 changes: 33 additions & 0 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["float_roundtrip"] }
# The agent reads the clock and sets socket buffers through this safe interface, so no crate of ours needs `unsafe`
rustix = { version = "1", default-features = false, features = ["std", "time", "net"] }
# Netlink for the Kernel backend (D-101): the messages are built by `netlink-packet-route` (no `unsafe`), the socket is `netlink-sys`.
# What the first lacks (`netem`, `htb`, `tbf`, `codel`, `pie`, the fifos) the backend encodes itself
netlink-packet-core = "0.9"
netlink-packet-route = "0.34"
netlink-sys = "0.9"
# The command line stops a run in an orderly way on Ctrl-C (D-066). The handler of the signal is in this crate, so no crate of
# ours needs `unsafe`
signal-hook = "0.4"
Expand Down
6 changes: 5 additions & 1 deletion crates/netscenario-backend-kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ netscenario-model.workspace = true
serde.workspace = true
serde_json.workspace = true
# The signal for the process group of a program: a safe call, no `unsafe` (D-025)
rustix = { workspace = true, features = ["process"] }
rustix = { workspace = true, features = ["process", "thread"] }
# Netlink instead of the tools `ip` and `tc` (D-101)
netlink-packet-core.workspace = true
netlink-packet-route.workspace = true
netlink-sys.workspace = true
# Handlers for the signals a program may be sent, so that they are not ignored in the programs (below)
signal-hook.workspace = true

Expand Down
1 change: 1 addition & 0 deletions crates/netscenario-backend-kernel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mod command;
pub mod doctor;
mod fabric;
mod netem;
mod netlink;
mod programs;
mod protocol;
mod provisioner;
Expand Down
Loading