MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / enable_ip_forwarding

Function enable_ip_forwarding

crates/openshell-driver-vm/src/runtime.rs:545–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

543}
544
545fn enable_ip_forwarding() -> Result<(), String> {
546 std::fs::write("/proc/sys/net/ipv4/ip_forward", "1")
547 .map_err(|e| format!("enable ip_forward: {e}"))
548}
549
550fn run_cmd(cmd: &str, args: &[&str]) -> Result<(), String> {
551 let output = StdCommand::new(cmd)

Callers 1

setup_tap_networkingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected