()
| 543 | } |
| 544 | |
| 545 | fn 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 | |
| 550 | fn run_cmd(cmd: &str, args: &[&str]) -> Result<(), String> { |
| 551 | let output = StdCommand::new(cmd) |
no outgoing calls
no test coverage detected