I’m trying to do the following in Rust:
ip route add <ip_address> dev <device_name>
I’ve found the rtnetlink library that seems to have this functionality through the RouteAddRequest struct in Rust. However, I’m not quite sure how to set the device for that.
Note: I’m new to Rust and don’t know a lot about the netlink protocol.